#include using namespace std; using ll = long long; template using P = pair; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vec A(N); int h = 0; for(int i=0;i> A[i]; for(int j=0;j<30;j++) if(A[i]&(1<& A,int bit)->ll{ bool ok = true; int n = A.size(); if(n<=1 || bit<0) return 0; vec X,Y; for(int i=0;i