n=int(input()) a=i=1 while i*i<=n: if n%i==0:a=i i+=1 print(a,n//a)