#include<iostream>	
 
int main()	
{
	using namespace std;	
 
	int num,factorial=1;
	cout<<"Enter the number: ";  
	cin>>num;
 
	for(int i=1;i<=num;i++)
	{
		factorial=factorial*i;
	}
 
	cout<<<<factorial<<endl;
 
	cin.get();
 
	return 0;
}