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