{ll a,b,c;rd(a,b,c);wt((abs(b)+c+abs(a)+c-2)/c+(b<0?2:(a!=0?1:0)));}