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