Calculate factorial of a given number N.
The first line contains an integer 'T' denoting the total number of test cases. In each test cases, it contains an integer 'N'.
In each seperate line output the answer to the problem.
1 <= T <= 100
1 <= N <= 18