#include<iostream> using namespace std; int main(){ int n,i=1; long long s=1; cin>>n; while(i<=n){ s*=i; i++; } cout<<s; return 0; }