import random N=int(input()) b=0 while True: a=random.randrange(1,(min(N-1,11))) b=N-a if(b < 11): break print(a,b)