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