import math
def operator(t):
    val=math.floor(t**(0.5))
    for i in range(val,0,-1):
        a,b=divmod(t,i)
        if b==0:
            return ' '.join(map(str,[i,a]))

t=int(input())
print(operator(t))