import math n = int(input()) for a in range(int(math.sqrt(n)), 0, -1): if n % (a * a) == 0: b = n // (a * a) print(f"{a} {b}") exit()