n = int(input()) ans = [] for i in range(1,int(n**0.5)+1): if n%(i**2)== 0: ans .append([i,n//(i**2)]) print(*ans[-1])