#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,n) for(int i = 0;i<((int)(n));i++) #define reg(i,a,b) for(int i = ((int)(a));i<=((int)(b));i++) #define irep(i,n) for(int i = ((int)(n)-1);i>=0;i--) #define ireg(i,a,b) for(int i = ((int)(b));i>=((int)(a));i--) typedef long long ll; typedef pair mp; ll mod = 1e9+7; ll inf = 1e18; //WA ll n,a[100],ans=0; ll f(ll N){ return ans; } int main(void){ cin>>n; rep(i,n)cin>>a[i]; queue Q; Q.push(make_pair((1<>i & 1)==0)continue; reg(j,i+1,n-1){ if((p.first>>j & 1)==0)continue; ll q=p.first; q = q & ~(1<