#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int INF = (1 << 30) - 1; const ll INFLL= (1LL << 61) - 1; const int MOD = 1000000007; #define ALL(a) (a).begin(),(a).end() #define rALL(a) (a).rbegin(),(a).rend() #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) int main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin>>N; vector A(N); REP(i,N)cin>>A[i]; vector nums(N,0); REP(i,N)nums[i]=i/2; int ans=0; do { vectorAA(N/2); REP(i,N){ AA[nums[i]]+=A[i]; } int tmp=0; REP(i,N/2){ tmp^=AA[i]; } ans=max(tmp,ans); } while (std::next_permutation(nums.begin(), nums.end())); cout<