#include <iostream>
using namespace std;

int main()
{

	int i, num, total=1;
	
	cout << "Enter an integer : " << endl;
	cin >> num;
	
	for(i=1;i<=num;i++)
	total *=i;
	
	cout << total;
		
	return 0;
	
	}
	