#include <iostream> using namespace std; int main() { int n; long long s = 1; cin >> n; for (int i = 1; i <= n; i++) s *= i; cout << s; return 0; }