#include <iostream> using namespace std; int main() { int n; cin >> n; long long factorial = 1; // 计算一个数的阶乘 for(int i=2; i <= n; i++) factorial = factorial * i; cout << factorial << endl; return 0; }