#include using namespace std; using ll =long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin>>N; vector A(N); for(int i=0;i>A[i]; } vector> AN; for(ll d=29;d>=0;d--){ sort(A.begin(),A.end()); if(A[0]&(1ll<