#include <iostream> using namespace std; int n; int main(void) { cin >> n; int ans = 1; for (int i = 1; i <= n; ++i) ans *= i; cout << ans << endl; }