#include <bits/stdc++.h>
using namespace std;
int n, m, a[10001];
int main() {
  cin >> n;
  a[0] = 0;
  a[1] = 1;
  a[2] = 0;
  a[3] = 18;
  a[4] = 0;
  a[5] = 1800;
  a[6] = 0;
  a[7] = 670320;
  a[8] = 0;
  a[9] = 734832000;
  a[10] = 0;
  a[11] = 890786230;
  a[12] = 0;
  a[13] = 695720788;
  a[14] = 0;
  a[15] = 150347555;
  a[16] = 0;
  cout << a[n];
  return 0;
}
