#include<stdio.h>
int main()
{
int i = 0;
int n = 0;
int z = 1;
scanf_s("%d", &n);
for (i = 1; i <= n; i++)
{
z = i * z;
}
printf("%d", z);
return 0;
}
#include<stdio.h>
int main()
{
int i = 0;
int n = 0;
int z = 1;
scanf_s("%d", &n);
for (i = 1; i <= n; i++)
{
z = i * z;
}
printf("%d", z);
return 0;
}