#what is hell is wrong there, i tried all the situation and still it showing WA all the time
#include
using namespace std;
int main()
{
int numberofcases;
cin >> numberofcases;
while (numberofcases--)
{
int num;
unsigned long long int total =1;
int count = num;
cin >> num;
for (int i = 1; i <= num; i++)
{
total *= i;
}
cout << total <<endl;
}
return 0;
}