def main(): N = int(input()) if N > 10: print(10, N - 10) else: print(1, N - 1) main()