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