#include using lint=long long; using real=long double; void cmx(lint&x,lint y){if(x>n; std::vectora(n); for(lint&x:a)std::cin>>x; auto cal=[&a,n](std::vector>const&ind){ return std::accumulate(ind.begin(),ind.end(),0ll, [&a](lint acc,std::pairconst&p){return acc+(a.at(p.first)^a.at(p.second));}); }; lint ans=0; auto dfs=[&,n,ckd=std::vector(n),ind=std::vector>()] (auto&&f) mutable { lint i=0,j=0; for(;i