# coding: utf-8 i = int(input()) if i%2 == 0: print(i//2, i//2) else: print(i//2, i//2+1)