$/=$";($x,$y,$r)=<>; if($x||$y){ $a=1+$r/sqrt($x*$x+$y*$y); $x*=$a; $y*=$a; } print 1+(abs($x)+abs($y)|0);