#include #include #include int main(void){ long x,y,l; double tmp,ans; scanf("%ld%ld%ld",&x,&y,&l); tmp = labs(x)/(double)l; ans += ceil(tmp); tmp = labs(y)/(double)l; ans += ceil(tmp); if(x!=0 && y>0) ans++; if(y<0)ans++; printf("%.0f\n",ans); return 0; }