include[HTML_REMOVED]
using namespace std;
int fact(int n)
{
int ans=1;
cin >> n;
for(int i=1;i<=n;i++)
{
ans=ans*i;
}
return ans;
}
int main()
{
int n;
cin >> n;
cout << fact(n) << endl;
return 0;
}