#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); ll X, Y, L; cin >> X >> Y >> L; X = abs(X); Y = abs(Y); ll ans = (X + L - 1) / L + (Y + L - 1) / L; if (X != 0 && Y != 0) ans++; cout << ans << "\n"; return 0; }