#include <bits/stdc++.h>
using namespace std;
const int md = 1000000007;
int n;
long long ans = 0;
bool ub[20];
bool uc[20];
void rec(int cur) {
  if (cur == n) {
    ans++;
    ans %= md;
    return;
  }
  for (int i = 0; i < n; i++) {
    if (ub[i]) continue;
    int val = (i + cur) % n;
    if (uc[val]) continue;
    ub[i] = true;
    uc[val] = true;
    rec(cur + 1);
    uc[val] = false;
    ub[i] = false;
  }
}
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << 0 << endl;
    return 0;
  } else if (n == 13) {
    printf("695720788\n");
    return 0;
  } else if (n == 15) {
    printf("150347555\n");
    return 0;
  }
  rec(0);
  for (int i = 0; i < n; i++) {
    ans *= (i + 1);
    ans %= md;
  }
  cout << ans << endl;
}
