n = int(input())
even = n//2
if n%2 ==1:
    odd = even+1
else:
    odd = even
print(f'{odd} {even}')