You are provided a number . In one step, a number is randomly selected from the interval and is replaced by where is the Bitwise XOR operation. Determine the expected value of after steps modulo .
There are multiple test cases in a single input file.
You can represent the answer as a rational fraction with . To provide the answer, you should print .
Input format
Output format
For each test case, print the answer in a new line.
Constraints
-