c=int(input()) a=2 flg=0 while flg==0: if c%a==0: flg=1 print(a,c//a)