c = int(input()) print('{} {}'.format(1, c))