n = int(input()) m = n res = 1 for i in range(2, int(n ** 0.5) + 1): while m % (i * i) == 0: m //= i * i res *= i print(res, m)