#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;

int main()
{

	int n, ans=1;

	cin >> n;
	for(int i=1; i<=n; i++){
		ans = ans*i; 
	}
	cout << ans << endl;

	return 0;
}