Given an array A of size N, you could choose some non-negative number X and change every element of the given array to Ai=Ai⊕X
Here, ⊕ denotes the bitwise XOR operation.
Print the number of total possible values of X for which bitwise OR of every element of the array would be minimum.
Input format
Output format
Print the number of total possible values of X for which bitwise OR of every element of the array would be minimum.
Constraints
1≤T≤5000
1≤N≤105
0≤Ai≤109
The sum of N over all test cases does not exceed 2⋅105
Here minimum possible bitwise OR of the array is 5.
All possible values for 'X' are 0,1,4,5.