#include <iostream>

using namespace std;

int main(){
   
   int num,fact=1;

   cin>>num;

   for(int a=1;a<=num;a++)
   {
       fact = fact * a;
   }
 cout<<fact;

  return 0;
   
    
}    
                           