import math n = int(input()) / 2 print(math.floor(n),math.ceil(n))