### C. Fadi and LCM
import math
n=int(input())
a = 1
if n==1:
    print(1,1)
else:
    while a<=n//2:
        if n%a==0:
            b=n//a
            if (a*b) // math.gcd(a,b) == n:
                print(a,b)
                break
        else:
            a+=1