#include <iostream>
#include <algorithm>
using namespace std;

int main(void)
{
    long long n, sum = 1;
    cin >> n;
    for (int i = 1; i <= n; ++i)
        sum *= i;
     cout << sum << endl;  
    return 0;
}




