#include<iostream> using namespace std; int main(){ int a,b=1,c=1; cin>>a; for(c=1;c<=a;c++){ b=b*c; } cout<<b; }