﻿using System;

class Factorial
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int fact = 1;

        for (int i = 1; i <= n; i++)
        {
            fact *= i;
        }
        Console.WriteLine(fact);
    }
}
