#include using namespace std; using ll=long long; const int N=1e5+5; const int mod=1e9+7; ll ans=0; int n; int op[N], a[N]; ll cal(int x,ll a,ll b){ if(x==0){ return (a^b)%mod; }else if(x==1){ return (a+b)%mod; }else if(x==2){ return (a-b)%mod; } } void dfs(int x){ if(x==n){ ll s=0; vector st; vector opst; st.push_back(a[0]); for(int i=1;i>n; for(int i=0;i>a[i]; } dfs(1); cout<