N = int(input()) print('{} {}'.format(str(N // 2), str(N - (N // 2))))