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