n = int(input()) a = int(n**0.5+1) while n%(a**2)>0: a-=1 print(a,n//(a**2))