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