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