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