#include<bits/stdc++.h> using namespace std; int main(){ int n,i,x=1; cin>>n; i=1; while(i<=n){ x=x*i; i++; } cout<<x<<endl; return 0; }