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