#include <stdio.h>
int main(){


         unsigned   long long int n,res;;
         int i;
            while(scanf("%llu",&n)==1){
                    res=1;

                for(i=2;i<=n;i++){
                    res=res*i;}
            printf("%llu\n",res);



            }

return 0;


}