#include<iostream> #include<cstdio> using namespace std; int main(){ int n; long long result = 1; cin>>n; for (int i=1;i<= n;i++) { result*=i; } cout<<result<<endl; return 0; }