#include<stdio.h>
int main()
{
int n,p;
while(scanf("%d",&n)!=EOF)
{
p=1;
while(n--)
{
p*=(n+1);
}
printf("%d\n",p);
}
return 0;
}
int main()
{
int n,p;
while(scanf("%d",&n)!=EOF)
{
p=1;
while(n--)
{
p*=(n+1);
}
printf("%d\n",p);
}
return 0;
}