N = int(input()) n1 = N //2 n2 = N - n1 # print(n1,end="") # print(" "+str(n2)) print(str(n1)+" "+str(n2))