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