#include <iostream>

using namespace std;

int main()
{
	int n,factor_n=1;

	cin>>n;

	for (int i=n;i>=1;i--){
		factor_n=factor_n*i;
	
	}

	cout<<"Factor of "<<n<<": "<<factor_n<<endl;

	system ("PAUSE");
	return 0;
}