#include <bits/stdc++.h>
using namespace std;
const long long int Maxn = 20 + 5, Mod = 1e9 + 7, Inf = 1e9;
int n, p[Maxn], ansss, m, fac[Maxn];
bool mrk[Maxn], mark[Maxn];
int ans[] = {1,         0, 18,        0, 1800,      0, 670320,    0,
             734832000, 0, 890786230, 0, 695720788, 0, 150347555, 0};
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  cout << ans[n - 1] << '\n';
  return 0;
}
