n=int(input()) a=1 k=2 while n>=k**2: if n%(k**2)==0: n//=(k**2) a*=k else: k+=1 print(a,n)