#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;

int main()
{
    int i,rslt=1, n;
    cin>>n;

    for(i=1;i<=n;i++){
        rslt*=i;


    }
    cout<<rslt<<endl;
    return 0;
}