N=int(input()) flag=True for i in range(1,11): for j in range(1,11): if i+j==N: flag=False print(i,j) break if flag==False: break