- Time limit: 1.00 s
- Memory limit: 512 MB
Given an array of integers, your task is to find the number of different subset xors.
Input
The first line has an integer : the size of the array.
The next line has integers : the contents of the array.
Output
Print one integer: the number of different subset xors.
Constraints
Example
Input:
3 3 6 5
Output:
4
Explanation: The following values can be the xor of a subset:
In this case, no other values can be the xor of a subset.