#include<iostream> #include<cstdio> using namespace std; int main(){ int long long a,s,b; b=1; cin>>a; for(int i=1;i<=a;i++){ b*=i; } if(b<=0){ b*=-1; } cout<<b; }