#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const long long int mod = 1e9 + 7;
const long long int inf = 1e16;
long long int ans[N] = {1,         0, 18,        0, 1800,      0, 670320,    0,
                        734832000, 0, 890786230, 0, 695720788, 0, 150347555, 0};
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  cout << ans[n - 1] << endl;
  return 0;
}
