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