from sys import stdin def main(): C = int(input()) print(1, C) input = lambda: stdin.readline() main()