#Lutece1555. Fact0rial
Fact0rial
Migrated from Lutece 1555 Fact0rial
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Calculate mod .
Input
The first line contains an integer , denoting the number of the test cases.
Each test case contains one number .
Output
mod .
Samples
5
1
3
5
7
20
1
6
120
5040
8103652940
Resources
The 15th UESTC Programming Contest Preliminary