import math


a = int(input())
l = list()
k = 0
if a ==1:
    print("1","1")
else:
    x = 1
    while pow(x,2) < a:
        if a%x == 0 and a*math.gcd(x , int(a/x)) == a:
            ans = x
        x+=1

    print(int(ans) , int(a/ans))