k=n=input()while n%k**2:k-=1print k,n/k/k
24
2 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!