($x,$y,$d)=glob<>; $a=$-=$d-$x; $b=$-=$d-$y; print$-=$d+1-$a-$b