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