#include<iostream>

using namespace std;

int Main()
{
     int counter, n, fact = 1;

     cin>>n;

     for (int counter = n; counter >= 1; counter--)
     {
         fact = fact * counter;
     }

     cout<<fact;
 }