#define div _div ll div(ll A, ll B) { ll q = A/B; if(A<0) q-=(B>0)-(B<0); return q; }