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