#include <bits/stdc++.h>
using namespace std;
bool mark[20][6];
long long ans = 0, mod = 1e9 + 7, n;
int x[] = {0,         1, 0,         18, 0,         1800, 0,         670320, 0,
           734832000, 0, 890786230, 0,  695720788, 0,    150347555, 0};
int main() {
  int n;
  cin >> n;
  cout << x[n] << endl;
  return 0;
}
