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