#include #include #include #include #include #include #include #include #include #define rep(i,l,n) for(lint i=l;i vi; typedef vector vli; typedef vector vvi; typedef pair pii; int main(){ int x,y,l,ans=0; cin>>x>>y>>l; if(y<0) ans++; if(y<0 && x==0) ans++; y=abs(y); x=abs(x); if(x!=0) ans++; ans+=(int)((double)y/(double)l+0.999999999)+(int)((double)x/(double)l+0.999999999); o(ans); }