from math import sqrt n=int(input()) N=n for i in range(2,int(sqrt(N))+1): while N%(i*i)==0: N//=(i*i) print(n//N,N)