n = int(input()) from collections import Counter def prime(n): p = Counter() while not n % 2: p[2] += 1 n //= 2 i = 3 while i <= n**0.5: while not n % i: p[i] += 1 n //= i i += 2 if n > 1: p[n] += 1 return p def divisor(n): res = [] i = 1 while i*i <= n: if not n % i: res.append(i) if (i*i != n): res.append(n//i) i += 1 return res p = prime(n) a = 1 b = 1 for key, value in p.items(): if value % 2: b *= key m = value // 2 if m: a *= key ** m print(a, b)