N=int(input()) M=1 R=int(N**0.5) for n in range(R,1,-1): nn = n*n if N%nn>0: continue M *= n N //=nn print(M, N)