while(0<1){val Array(a,b)=readLine split" "map(_.toInt);println(a+b*b/a+2>>2)}