def a1plusa2(num): res = "{res1} {res2}" if num % 2 == 0: str = int(num / 2) res = res.format(res1=str ,res2= str) else: str1 = int(num / 2) str2 = int(num / 2 + 1) res = res.format(res1=str1,res2=str2) return res print(a1plusa2(int(input())))