#include <iostream>
#include <cmath>
using namespace std;
int main() {
double n, m, k;
cin >> n >> m >> k;
cout << ceil (n / k) + ceil (m / k);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSBuLCBtLCBrOwoJY2luID4+IG4gPj4gbSA+PiBrOwoJY291dCA8PCBjZWlsIChuIC8gaykgKyBjZWlsIChtIC8gayk7CglyZXR1cm4gMDsKfQ==