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