#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector B(N); for(auto &b : B) cin >> b; int answer = 0; for(int d=0; d<20; d++){ bool zero = true,one = true; for(int i=0; i>d)&1; if((i+1)&(1<