f[a,b]=round$(a+b*b/a)/4 m@main=getLine>>=print.f.map read.words>>m