#include #include #include #include #include #include #include #include #include #define rep(i,j,k) for(int i=j;i #define INF 1000000000 #define MOD 1000000009 #define pb push_back #define mp make_pair typedef long long ll; int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0}; using namespace std; ll gcd(ll a,ll b){ if(a>x>>y>>l; int ans=0; if(x%l==0)ans+=abs(x)/l; else ans+=abs(x)/l+1; if(y%l==0)ans+=abs(y)/l; else ans+=abs(y)/l+1; if(y<0)ans+=2; if(x!=0)ans++; cout<