#include <bits/stdc++.h>
using namespace std;
const int MaxN = 200005;
const double eps = 1e-7;
const double DINF = 1e100;
const int INF = 1000000006;
const long long LINF = 1000000000000000005ll;
const int MOD = 1000000007;
int n;
int A[17] = {0, 1,         0, 18,        0, 1800,      0, 670320,
             0, 734832000, 0, 890786230, 0, 695720788, 0, 150347555};
int main() {
  cin >> n;
  cout << A[n] << endl;
  return 0;
}
