#include <iostream>
using namespace std;

#define ULL_INT unsigned long long int

int main() {
	int n; cin >> n; ULL_INT ans = 1;
	for (int i = n; i > 0; i--) ans *= i;
	cout << ans << endl;
	return 0;
}
