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