#include<iostream>

using namespace std;


long long i, num, fact=1;



int main()
{
    cin >> num;

    for(i = 1; i <= num; i++)
    {
    	fact = fact * i;
    }

    cout << fact << endl;
    system("pause");
}