Niuniu likes gambling.
Team A and B will play 2n-1 matches.
Niuniu wants to bet 22n-1 that team A wins the entire series.
In other words, if A wins n or more matches, Niuniu will gain 22n - 1
If A loses(B wins) n or more matches, Niuniu will lose 22n - 1(gain -22n - 1)
However, the banker does not allow such a bet. Niuniu can only bet on individual matches.
The winning percentage of both teams is 0.5. All matches are independent of each other.
Niuniu can bet on the (i+1)-th match after seeing the results of the first i games.
Your program need read n and output the bet on the first match.
Then read the result of the first match, output the bet on the second match.
Then read the result of the second match, output the bet on the third match.
....
Finally, read the result of the (……)-th match, and team A wins or loses the entire series, the program ends.
The answer can be uniquely determined, and this is not a interactive problem.
As the result might be very large, you should output the result mod 1000000007.