#include using namespace std; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a dat; bool operator==(const ull&a)const{return dat==a.dat;}; bool operator!=(const ull&a)const{return dat!=a.dat;}; bool operator<(const ull&a)const{return dat(const ull&a)const{return dat>a.dat;}; ull(){for(int i=0;i<(int)B;i++) dat[i]=0;} ull(unsigned long long a){ for(int i=0;i<(int)B;i++) dat[i]=0; dat[B-1]=a; } ull& operator^=(const ull&a){ for(int i=0;i<(int)B;i++) dat[i]^=a.dat[i]; return *this; } ull operator^(const ull&a)const{ return ull(*this)^=a; } }; ull rnd[300][300]; vector vs; void add(ull v){ for(ull b:vs) chmin(v,v^b); if(v!=ull(0)) vs.emplace_back(v); } void init(int n){ mt19937_64 mt(1333); for(int i=0;i>s; for(int j=0;j>n>>m; init(n); vector vs; for(int i=0;i