#include<bits/stdc++.h>
using namespace std;
int main()
{ int n;
 cin>>n;
 int i=1,sun=1;
 while(i<=n){
 	sun*=i;
 	i++;
 }
 cout<<sun<<endl;
	return 0;
}

/**************************************************************
	Problem: 1004
	User: ct001
	Language: C++
	Result: Accepted
	Time:18 ms
	Memory:2072 kb
****************************************************************/