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