while(0<1)println(readLine split" "map(_.toInt)reduce((a,b)=>a+b*b/a+2>>2))