#include <bits/stdc++.h>
using namespace std;
const int N = 300010, M = 100000, INF = 0x3f3f3f3f, MOD = 100000000;
const double DNF = 100000000000;
int a[N];
int n;
int l[17] = {0,         1, 0,         18, 0,         1800, 0,         670320, 0,
             734832000, 0, 890786230, 0,  695720788, 0,    150347555, 0};
int main() {
  int i, j;
  scanf("%d", &n);
  printf("%d\n", l[n]);
  return 0;
}
