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