#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 vs; void add(ull v){ for(ull b:vs) chmin(v,v^b); if(v!=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