N=int(input()) if N<=10: print(str(N-1)+" "+str(1)) else: print(str(N-10)+" "+str(10))