($x,$y)=split/ /,<>;print int(sqrt($x*$x+$y*$y+0.001)*2+1)