n = int(input()) m = n // 2 print(m, n - m)