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