Bob and Alice are playing with an array A[] of n elements with Bob starting the game. In each turn:
Alice modifies the game a bit. She selects some distinct elements that are present in A[] and removes all other elements that are not selected from A[]. Now, the game is played using this modified array. For example, if A=[1,1,3,12,2,34,2] and Alice selects values (1, 2, 34), then the array with which the game is played is [1, 1, 2, 34, 2].
Find the number of possible subsets of elements that Alice can select to modify A[] such that Alice must win if both the players play optimally.
Note
Input format
Output format
Print the number of possible subsets of elements that Alice can select to modify A[] such that Alice must win if both the players play optimally modulo 109+7.
Constraints
1≤N≤1000001≤A[i]≤100
Two possible solutions are: