n = int(input())

a = int(n/2)

if n % 2 == 0:
    print(a,a)
else:
    print(a+1,a)