#include <bits/stdc++.h>

using namespace std;

int main(){
    #ifndef ONLINE_JUDGE
    freopen("debug.in", "r", stdin);
    #endif // ONLINE_JUDGE

    int n;
    long long int ans = 1;
    cin >> n;
    for(int i = 1; i <= n; i++){
        ans *= i;
    }
    cout << ans;
    return 0;
}