You are provided a number s. In one step, a number a is randomly selected from the interval [0,N] and s is replaced by s⊕a where ⊕ is the Bitwise XOR operation. Determine the expected value of s after k steps modulo 109+7.
There are multiple test cases in a single input file.
You can represent the answer as a rational fraction PQ with Q>0. To provide the answer, you should print P⋅Q−1mod(109+7).
Input format
Output format
For each test case, print the answer in a new line.
Constraints
1≤t≤20000
0≤n,k,s≤109
1≤t≤20000
-