import math
def div(k):
    m=100000000000000
    for i in range(1,math.floor(math.sqrt(k))+1):
        if k%i==0:
            m=min(max(k//i,i),m)
    return m
            

n=int(input())
a=div(n)
print(a,n//a)
