n = int(input()) import numpy as np p = 2 a = 1 b = n while b > p: if b % p**2 == 0: b /= p**2 a *= p else: p += 1 # print(n,p) print(int(a),int(b))