#include <stdio.h>

int main() {
    int n, odd = 0, even = 0;
    scanf("%d", &n);
    for(int i = 1; i <= n; i++){
        if(i % 2)
            odd++;
        else
            even++;
    }
    printf("%d %d", odd, even);
    return 0;
}