P=int(input()) for x in range(1,P+1): if P%x==0: print(x,P//x) exit()