#include<iostream>
#include<vector>
using namespace std;
long long int kai(long long int n){
    if(n <=0)return 1;
    return n*kai(n-1);

}

int main(void){
   long long int n;
   cin>>n;
   cout<< kai(n)<<endl;
return 0;
}
