M=int(input()) i=2 while M%i!=0 and i*i<=M: i+=1 if i*i>M: i=1 Q=str(M//i) i=str(i) print (i+" "+Q)