a = int(input()) for i in range(0,a): if a%i == 0: b =int(a/i) print(i,'',b) break