n=int(input()) a=round(sqrt(n)) k=1 for i in range(a): if a%i==0: k=i break print(k,n/k)