def sqrt_cal(): n=int(input()) for i in range(n,0,-1): if n % (i**2) == 0: print(i,n//(i**2)) break if __name__ == "__main__": sqrt_cal()