Given an array A of length N. For every index i, find the number of distinct non-empty XOR subsequences in the subarray A[1,2,....,i].
Note:
Input format
Output format
Print N space-separated integers where i'th integer denoting the number of distinct XOR subsequences of subarray A[1,2,....,i].
Constraints
1≤N,A[i]<210