#include <iostream>
#include <cmath>
#include <vector>
#include <stack>
#include <algorithm>
using namespace std;

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