fork(8) download
  1. k=n=input()
  2. while n%k**2:k-=1
  3. print k,n/k/k
Success #stdin #stdout 0.02s 9024KB
stdin
24
stdout
2 6