#include <bits/stdc++.h>
int main() {
  int l[17] = {0, 1,         0, 18,        0, 1800,
               0, 670320,    0, 734832000, 0, 890786230,
               0, 695720788, 0, 150347555, 0};
  int n;
  while (scanf("%d", &n) != EOF) {
    printf("%d\n", l[n]);
  }
  return 0;
}
