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