You are given an array consisting of n integers . Find the maximum value of xor of sum of 2 disjoint subarrays i.e maximize ( sum() xor sum() )
where < .
Note: sum(l,r) denotes sum of elements from indices l to r both inclusive.
Input Format
First line contains number n denoting the number of array elements.
Second line contains n integers denoting .
Output Format
Output the required value.
Constraints
The optimal values of are 1,2,3,4.
Sum(1,2) = 1 + 2 = 3
Sum(3,4) = 1 + 3 = 4
Sum(1,2) xor Sum(3,4) = 7.
Note that you cannot get a value greater than 7.