#include<bits/stdc++.h> using namespace std; int n; int a(int x){ if(x==1) return 1; else{ return a(x-1)*x; } } int main(){ cin>>n; cout<<a(n); }