#include<iostream> using namespace std; int n(int h){ if(h<2) return 1; return h*n(h-1); } int main(){ int g; cin>>g; cout<<n(g); return 0; }