package main import . "fmt" func main() { var n int Scan(&n) a,b:=1,n for i:=1;i*i<=n;i++ { x:=n/(i*i) if x*i*i==n { a,b=i,x } } Println(a,b) }