n = int(input()) a = 1 for x in range(2, 10 ** 5): while n % x ** 2 == 0: n //= x ** 2 a *= x print(a, n)