n=int(input())
k=[]
if n==1:print('1 1')
else:
    for i in range(1,n):
        if i>n:break
        elif n%i==0:
            if i in k or (n//i) in k:break
            else:k=[i,n//i]
for i in k:print(i,end=' ')

