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