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