#include <stdio.h>

int main() {
    int num = 0;
    int evenNum = 0;
    scanf("%d",&num);
    for (int i = 1; i <= num; i++)
    {
        if (i % 2 == 0)
        {
            evenNum++;
        }
    }
    printf("%d %d",num-evenNum,evenNum);
    return 0;
}