x,y,l=$<.map &:to_i;p (y<0?2:0<=>z=-x.abs)+z/l-y.abs/-l