#!python # -*- coding: utf-8 -*- N = int(input()) a1 = N // 2 a2 = N - a1 print('{} {}'.format(a1, a2))