N = int(input()) print(N//2, N//2 +1) if N % 2 > 0 else print(int(N/2), int(N/2))