import random N = int(input()) a = random.randint(1,10) b = N-a while b > 10: a = random.randint(1,10) b = N - a print(a,b) print()