n=int(input()) if n<=10:print(1,n-1) else:print(10,n-10)