# include<iostream> using namespace std; int n; int f(int x){ if(x==1)return 1; return x*f(x-1); } int main(){ cin>>n; cout<<f(n); }