p = int(input()) print("1 {}".format(p))