#include <iostream>

using namespace std;

typedef long long ll;

int main() {
    int n;
    ll ret = 1;
    cin >> n;
    for (int i = 1; i <= n; i++) {
        ret *= i;
    }

    cout << ret << endl;
    return 0;
}