# -*- coding: utf-8 -*- import sys import copy # input = sys.stdin.readline # --------------------------------------------------------- C = int(input()) print(1, C)