#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << 0;
  }
  if (n == 1) {
    cout << 1;
  }
  if (n == 3) {
    cout << 18;
  }
  if (n == 5) {
    cout << 1800;
  }
  if (n == 7) {
    cout << 670320;
  }
  if (n == 9) {
    cout << 734832000;
  }
  if (n == 11) {
    cout << 890786230;
  }
  if (n == 13) {
    cout << 695720788;
  }
  if (n == 15) {
    cout << 150347555;
  }
  return 0;
}
