#include using namespace std; using ll = int64_t; using Vll =vector; using VVll =vector>; template using Vc = vector; template using VVc = vector>; void Z(ll i){ cout<<"Test"<>n; Vll A(n),B(n); for(ll i=0;i>a; A.at(i)=a; } for(ll i=0;i>a; B.at(i)=a; } ll aw=0,bw=0,nw=0; sort(A.begin(),A.end()); sort(B.begin(),B.end()); do{ Vll B_=B; do{ ll ap=0,bp=0; for(ll i=0;iB_.at(i)) ap++; else bp++; } if(ap>bp) aw++; else if(ap