c = int(input()) for i in range(1, c+1): if c % i == 0: d = c // i if i * d == c: print(i, d) break