import sys readline=sys.stdin.readline C=int(readline()) print(1,C)