#define loop(v,m) for(int v = 0; v < int(m); ++v) #define loopi(m) loop(i,m) #define loopj(m) loop(j,m) #define loopk(m) loop(k,m) #define loopl(m) loop(l,m) #define looprev(v,m) for(int v = int(m); --v >= 0;) #define loopirev(m) looprev(i,m) #define loopjrev(m) looprev(j,m) #define loopkrev(m) looprev(k,m) #define looplrev(m) looprev(l,m)