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