#include #include #include #include #include #include #include int facto(int n) { int nb = 1; while (n) { nb *= n; --n; } return (nb/2 + 1); } int main(){ int n; scanf("%d",&n); int *m = malloc(sizeof(int) * n); for(int m_i = 0; m_i < n; m_i++){ scanf("%d",&m[m_i]); } // your code goes here if (n == 2) printf("1\n"); else printf("%d\n", (facto(n) % 1000000007)); return 0; }