#include<iostream>
using namespace std;

int main()

{

    int num;
	unsigned long long int total=1;

    cout << "Please enter a number : ";
    cin >> num;

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

	printf("%llu", total);
	
    return 0;
}