#include using namespace std; random_device rnd; mt19937 mt(rnd()); int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector A(N); for(auto &a : A) cin >> a; vector> base; for(int i=0; i (a^b)) a = a^b,now ^= s; if(a == 0){ vector answer; for(int k=0; k<63; k++) if(now&(1LL< (b^a)) b = b^a,s ^= now; base.push_back({a,now}); } cout << "-1" << endl; }