#include<stdio.h>
int main()
{
    int a, b, c, i;
    scanf("%d", &i);
    for (a = 0; a < i; a++)
        if (i% 2 == 0)
        {
            b = i / 2;
            c = i / 2;
        }
        else if (i % 2 != 0)
        {
            b = i / 2;
            c = i / 2 + 1;
        }
    printf("%d %d",c,b);
    return 0;
}