n = int(input()) N = n d = dict() i = 2 while i + i <= n: if n % i == 0: count = 0 while n % i == 0: n //= i count += 1 d[i] = count i += 1 if n != 1: d[n] = 1 for k in d.keys(): if d[k] % 2== 1: ans *= k from math import sqrt print(int(sqrt(N//ans)),ans)