#include <iostream> using namespace std; int fact(int t){ if(t == 1) return 1; return t * fact(t - 1); } int main(){ int n; cin >> n; cout << fact(n) << endl; return 0; }