#include <bits/stdc++.h>
using namespace std;
int n, m, k, q, p, t, s;
long long ans;
long long a[] = {1, 3, 15, 133, 2025, 37851, 1030367, 36362925};
int main() {
  cin >> n;
  if (n % 2 == 0)
    cout << 0 << endl;
  else {
    ans = a[(n + 1) / 2 - 1];
    for (int i = 1; i <= n; i++) ans = (ans * i) % 1000000007;
    cout << ans << endl;
  }
  return 0;
}
