#include #include using namespace std; int main(){ int x,y,z,to=0; cin >> x >> y >> z; to = abs(x)/z; if(x==0&& y>=0) to += abs(y)/z+1; else if(x!=0&&y>=0) to += abs(y)/z+1+1; else to += 3+abs(y)/z+abs(x)/z; cout << to <