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