#include <bits/stdc++.h>
using namespace std;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= 1000000007;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % 1000000007;
    a = a * a % 1000000007;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int v[] = {0,         1, 0,         18, 0,         1800, 0,         670320, 0,
             734832000, 0, 890786230, 0,  695720788, 0,    150347555, 0};
  int n;
  cin >> n;
  cout << v[n] << "\n";
}
