using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Factorial
{
    class Program
    {
        static void Main(string[] args)
        {
            string n;
            Console.WriteLine("n!");
            n = Console.ReadLine();
            int n1 = Int32.Parse(n);
            int z = --n1;
            n1++;
            while(z!=0)
            {
                n1 = n1 * z;
                z--;
            }
            Console.WriteLine("Result:" + n1.ToString());
            Console.ReadKey();
        }
    }
}