#include using namespace std; const int M=1<<21|5; int n; char str[M]; int Cnt[M]; void Deal(int x) { while(x) { Cnt[x&-x]++; // printf("%d ++\n",x&-x); x&=x-1; } } void Solve() { for(int i=0;i<=20;i++)Cnt[1<=1;i--) { bool f=false; if(c)ans|=1<