Given an positive integer , we define
,
You need to calculate .
As the answer may be too large, you need to print the answer module .
The first line of the input gives the numbers of test cases,
,
test cases follow.
Each test case consists of one line with one integer
as described above.
For each test case, print an integer in one line representing the answer.