foreach a\ b [read stdin] {puts [expr round((sqrt(4*$a*$a+3*$b*$b)-$a)/3)]}