n = int(input()) if n % 2 == 0: a = b = n//2 else: a = n//2 + 1 b = n - a print(a, b)