#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, f = 1;
  long long int res[] = {0,    1, 0,     3, 0,       15, 0,        133, 0,
                         2025, 0, 37851, 0, 1030367, 0,  36362925, 0};
  cin >> n;
  if (n % 2 == 0)
    printf("0\n");
  else {
    for (int i = 1; i <= n; i++) f = (f * i) % 1000000007;
    cout << (res[n] * f) % 1000000007 << endl;
  }
  return 0;
}
