mmanchev23_it-career/09. Algorithms and Data Structures (Advanced)/03. Combinatorics/Solutions/01. Permutations/Program.cs
using System;

namespace _01._Permutations
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine());
            Console.WriteLine(Factorial(n));
        }

        public static long Factorial(long n)
        {
            if (n == 1)
            {
                return 1;
            }
            else
            {
                return n * Factorial(n - 1);
            }
        }
    }
}
