#include using namespace std; template void fin(T a){ cout<>x>>y>>l; x=abs(x);y=abs(y); int ans=0; if(x)ans+=(x-1)/l+1; if(y)ans+=(y-1)/l+2; cout<