#include #include #include int factorial(int n){ if(n==0){ return 1; } else{ return n * factorial(n-1); } } double mo(int a){ int m; int ret; m=10*10*10*10*10*10*10*10*10+7; ret=a %m; return ret; } int main(void){ int answer=0; int n; double ans=0; scanf("%d", &n); answer=factorial(n); ans=mo(answer); printf(" %f", ans); return 0; }