N = (int)(input()) print(N//2,N//2 + N%2)