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