FAST_IO = 0 if FAST_IO: import io, sys, atexit rr = iter(sys.stdin.read().splitlines()).next sys.stdout = _OUTPUT_BUFFER = io.BytesIO() @atexit.register def write(): sys.__stdout__.write(_OUTPUT_BUFFER.getvalue()) else: rr = raw_input rri = lambda: int(rr()) rrm = lambda: map(int, rr().split()) #### N = rri() ans = 1 bns = 1 d=2 while d * d <= N: e = 0 while N%d == 0: N //= d e += 1 if e: q,r = e//2, e%2 ans *= (d)**q bns *= d**r d += 1 + (d&1) if N > 1: bns *= N print ans,bns