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