#include<iostream>
using namespace std;
int x[1000] = {0};
int main()
{
x[0] = 1;
int i, j, k = 1;
int temp = 1;
for (i = 2; i <= 100; i++)
{
for (int j = 0; j < k; j++)
{
x[j] = i * x[j];//2*1 3*2 4*6
}
for (j = 0; j < k; j++)
{
if (x[j] >= 10)
{
if((j + 1) == k)
k++;
x[j + 1] += x[j] / 10;
x[j] = x[j] % 10;
}
}
}
for (int s = k-1; s >=0; s--) {
cout << x[s];
}
}