def cal(n, a): return n - a n = int(input()) b = 0 for a in range(10, 0, -1): b = cal(n, a) if b <= 10 and b >= 1: break print(a, end=" ") print(b)