#include using namespace std; int main(){ long long int x,y,l; cin >> x >> y >> l; int count = 0; x = abs(x); y = abs(y); if(x > 0 and y > 0) count++; while(x > 0){ x -= l; count++; } while(y > 0){ y -= l; count++; } cout << count << endl; return 0; }