import math n = int(math.sqrt(10**9)) C = input() for i in range(n)+1: if C % i == 0: print("{0} {1}".format(i, C/i)) break