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