X = int(input()) print(X, 1)