#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
long long f=1;
for(int i=1;i<=n;i++){
f=f*i;
}
cout<<f;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKXsKCWxvbmcgbG9uZyBuOwoJY2luPj5uOwoJbG9uZyBsb25nICBmPTE7Cglmb3IoaW50IGk9MTtpPD1uO2krKyl7CgkJZj1mKmk7Cgl9Cgljb3V0PDxmOwoJcmV0dXJuIDA7Cn0=