You are given an array A of length N. A subarray is called special if the XOR and Sum of the subarray are the same. Find the number of special subarrays of A.
Input Format
Output Format
For each test case, print the number of special subarrays of A.
Constraints
1≤T≤101≤N≤1051≤Ai≤109
For test case 1:
Hence, the answer is 5.
For test case 2:
Hence, the answer is 2.