Bob and James are about to play with an array of elements with Bob starting the game. In each turn :
The player whose turn makes array becomes empty wins the game.
James is very intelligent and he modifies the game a bit. He selects some distinct elements (among those present in ) and removes all other elements which are not selected from . The game is then played using this modified array.
For example, consider . If James chooses values , then the array with which the game is played is .
Find the number of possible subsets of elements that James can select to modify such that James is bound to win if both the players play optimally.
Consider an empty subset as a valid answer.
Since the number of possible subsets can be large enough, print the answer modulo .
Input format
Output format
For each test case, print the number of possible subsets satisfying the criteria modulo in a new line.
Constraints
Two possible solutions are :-