#include using namespace std; int main(){ int X, Y, L; cin >> X >> Y >> L; if(Y == 0){ if(X == 0){ cout << 0 << endl; }else{ cout << abs(X / L) + 1 << endl; } }if(Y <= 0){ if(X == 0){ cout << -1 * Y / L + 2 << endl; }else{ cout << abs(X) / L + (-1 * Y) / L + 1 << endl; } }else{ if(X == 0){ cout << Y / L << endl; }else{ cout << abs(X) / L + Y / L + 1 << endl; } } }