N = int(input()) M = N -1 print("1 {1}".format(N,M))