f[a,b,c]=let l=sqrt(c*a/b)in unwords$map(show.floor)[l,a/l,c/l] m@main=getLine>>=putStrLn.f.map read.words>>m