You are given a sequence of $$$n$$$ integers $$$a_1, a_2, \dots , a_n$$$ .
Count the distinct numbers you can produce by choosing any subsequence from $$$a$$$ and calculate their bitwise XOR. The chosen subsequence can be empty.
The first line of input contains a single integer $$$n \ (1 \le n \le 10^5)$$$.
Then, the second line contains $$$n$$$ integers $$$a_1, \dots , a_n \ (0 \le a_i \lt 2^{60})$$$.
Print a line of a single integer denoting the answer.
4 7 2 1 5
8
7 1 1 1 1 1 1 1
2