n = int(input()) l = [] if n%2==0: l[0]=n/2 l[1]=n/2 else: l[0]=int((n+1)/2) l[1]=n-l[0] print(*l)