n=int(input()) for i in range(1,10**7): if n%i==0: print(i,n//i) exit()