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