#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,s=1;
    cin>>a;
    for(int i=1;i<=n;i++){
        s*=i;
    }
    cout<<s;
    return 0;
}
/**************************************************************
	Problem: 1004
	User: xiaohongyi
	Language: C++
	Result: Compile Error
****************************************************************/