P = int(input()) for i in range(1,P): if P%i == 0: print(i, P/i) break