#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int n;
    long int ans = 1;
    
    cin >> n;
    for(int i = n; i > 0; i--){
        ans *= i;
    }
    cout << ans << endl;
}

