Simple Factorial
You are asked to calculate factorials of some small positive integers.
Input
 

Input
Tips:

An integer T, denoting the number of testcases, followed by T lines, each containing a single integer N.

 

Output
For each integer N given at input, output a single line the value of N!


If you have multiple test cases in a file start this section as: "For each test case, output a single line containing...".

 

Constraints
Should contain all the constraints on the input data that you may have. Format it like:

1 ≤ T ≤ 100
1 ≤ N ≤ 100

 


Input:
4
1
2
5
3
Output:
1
2
120
6
l=(int)(input())
 
def fact(m):
    j=1
    f=1
    while(j<=m):
        f=f*j
        j+=1
    return f
 
lt={}
k=1
while(k<=l):
    m=(int)(input())
    lt[k]=fact(m)
    k+=1
 
n=1
while(n<=l):
    print(lt[n])
    n+=1