#include #define ll long longint n;ll fac(int x){if (x==0) return 1;return x*fac(x-1);}int main(){scanf("%d",&n);printf("%lld",fac(n));return 0;}
int fac(int n){int f=1;while(n)f*=n--;return f;}