class Problem0809: def solve(this): n = int(input()) print("1 %d" % n) if __name__ == "__main__": problem = Problem0809() problem.solve()