#include<iostream>
using namespace std;

int main(){
    
    int n;
    
        int x = 1;
        cin >> n;
        for(int i = n;i>0;i--){
            x *= i;
        }

        cout << x << endl;
    
    return 0;
    
}