#include <bits/stdc++.h> using namespace std; int main() { long long s = 1; int n; cin >> n; for (int i = 1; i <= n; i++) s *= (i * 1LL); cout << s << endl; }