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