System.in.eachLine{(a,b)=it.split()*.toLong() printf"%.0f\n",(a+b*b/a)/4}