#include <iostream>
#include<vector>
using namespace std;


long long int aiu(int n) {
	if (n == 1) { return 1; }
	return n * aiu(n - 1);
}
int main() {
	int n;
	cin >> n;
	cout << aiu(n) << endl;
}



