#include using namespace std; using ll = long long; map<__int128_t,ll> memo,vis; int n; ll calc(__int128_t ni){ if(vis[ni]) return memo[ni]; vector use; for(int i = 0;i<=100;i++){ if(ni>>i&1) use.push_back(calc(i)); } if(ni<0){ for(int i = 100;i<=400;i++) use.push_back(calc(i)); } sort(use.begin(),use.end()); int now = 0; for(int i = 0;i>n; vector a(n); for(int i = 0;i>a[i]; ll now = 0; int cnt = 0; for(int i = 0;i=0) now ^= calc(a[i]); for(int i = 0;i