import math c = int(input()) sqrt_c = math.isqrt(c) for i in range(sqrt_c, 0, -1): if c % i == 0: print(i, c // i) break