#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) #define indexOf(v,x) (find(all(v),x)-v.begin()) int main() { ios::sync_with_stdio(0); cin.tie(0); int x,y,L,ans=0; cin>>x>>y>>L; if(x)ans++; if(y<0){ if(x)ans++; else ans+=2; } x=abs(x); y=abs(y); ans+=(x+L-1)/L+(y+L-1)/L; cout<