#include <iostream>

using namespace std;
double factorial;
double x;
double y = 1;
int main()
{
        cin >> factorial;

        while(factorial != 0)
        {
            x = factorial;
            y = y*x;
            factorial--;

        }
        cout << y;
}