first_num =int(input()) tmp_num =first_num count = 1 dist=0 result=0 while(tmp_num >= 1): if tmp_num%count ==0: tmp_num=int(first_num/count) dist=dist+1 if dist > 1 and tmp_num > 1: result= tmp_num + " " + count; elif tmp_num == 1 and dist ==2: result= 1 + " " + first_num; count=count+1 print