#include #include #include using namespace std; int main() { double a,b,c; int count =0; cin>>a>>b>>c; if(b<0){count+=2;} if(a!=0){count+=1;} count+=ceil(abs(a)/c)+ceil(abs(b)/c); cout<