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