#include <bits/stdc++.h>
using namespace std;
const long long mol = 1e9 + 7;
int n;
long long a[18];
long long f[18];
void make_a() {
  a[1] = 1;
  a[2] = 0;
  a[3] = 3;
  a[4] = 0;
  a[5] = 15;
  a[6] = 0;
  a[7] = 133;
  a[8] = 0;
  a[9] = 2025;
  a[10] = 0;
  a[11] = 37851;
  a[12] = 0;
  a[13] = 1030367;
  a[14] = 0;
  a[15] = 36362925;
  a[16] = 0;
}
int main() {
  make_a();
  f[1] = 1;
  for (int i = 2; i <= 16; i++) f[i] = (f[i - 1] * i) % mol;
  while (~scanf("%d", &n)) {
    long long ans = (a[n] * f[n]) % mol;
    printf("%I64d\n", ans);
  }
  return 0;
}
