#include<bits/stdc++.h>
using namespace std;
int ans = 1;
int main(){
	int n;
	cin >> n ;
	for(int i = 1 ; i <= n ; i++){
		ans *= i ; 
	}
	cout << ans ;
	return 0;

}

/**************************************************************
	Problem: 1004
	User: Hawthorne
	Language: C++
	Result: Accepted
	Time:21 ms
	Memory:2072 kb
****************************************************************/