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