#include<iostream> #include<cstdio> using namespace std; int main() { long long b; cin>>b; int v=b-1; while(v>=1) { b*=v; v--; } cout<<b; return 0; }