def yukicoder1063(n): x = int(n ** 0.5) b = n for i in range(1, x + 1): if n % (i ** 2) == 0: a = i b = n // (a ** 2) ans = '{} {}'.format(a, b) return ans n = int(input()) print(yukicoder1063(n))