N = int(input()) ans = N//2 print(ans, N - ans)