#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int v[17];
  v[1] = 1;
  v[2] = 0;
  v[3] = 18;
  v[4] = 0;
  v[5] = 1800;
  v[6] = 0;
  v[7] = 670320;
  v[8] = 0;
  v[9] = 734832000;
  v[10] = 0;
  v[11] = 890786230;
  v[12] = 0;
  v[13] = 695720788;
  v[14] = 0;
  v[15] = 150347555;
  v[16] = 0;
  scanf("%d", &n);
  printf("%d", v[n]);
  return 0;
}
