while(0<1){var a=readLine.split(" ")map(d=>d.toFloat);printf("%.0f\n",(a(0)*a(0)/a(1)+a(1))/2)}