#include<stdio.h>
int main()
{
int n;
int i;
for i in range(1,n):

fact=fact*n
scanf("%d",&n)
printf("%d",n)
    
}