#include using namespace std; 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 grundy(61); for(int i=1; i<=60; i++){ vector appear; for(int k=0; k<6; k++){ if(i&(1< now) break; if(ap == now) now++; } grundy.at(i) = now; } int minus = 0,xora = 0,plus = 0; for(int i=0; i appear; for(int k=0; k<60; k++){ if(a&(1LL< now) break; if(ap == now) now++; } xora ^= now; cout << a << " " << now << endl; } if(xora == 0 && minus%2 == 0) cout << 2 << endl; else cout << 1 << endl; }