$/=$";($x,$y,$r)=<>; $r*=sqrt 2; ++$i while abs($x+$y)+$r>=$i || abs($x-$y)+$r>=$i; print $i;