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