main@m=getLine>>=print.f.map read.words>>m f[x,y]=round$(y+x^2/y)/2