#include int main() { int n; scanf("%d", &n); n % 2 == 0 ? printf("%d %d\n", n / 2, n / 2) : printf("%d %d\n", n / 2, n / 2+1); }