#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 4000000000000000001LL void Gauss(vector> &B){ int now = 0; rep(i,300){ int temp = -1; for(int j=now;j>n; vector a(n); rep(i,n)cin>>a[i]; if(n>70)a.resize(70); vector> cur; rep(i,a.size()){ bitset<300> t; rep(j,60){ if(a[i]>>j&1)t[j] = 1; } t[60+i] = 1; cur.push_back(t); Gauss(cur); bool f = true; rep(j,60){ if(cur.back()[j]){ f = false; break; } } if(f){ vector ans; rep(j,100){ if(cur.back()[j+60])ans.push_back(j); } cout<