#include <bits/stdc++.h>
using namespace std;
const int N = 100100;
const long long int mo = 1e9 + 7;
long long int a[N] = {0, 1,    0, 3,     0, 15,      0, 133,
                      0, 2025, 0, 37851, 0, 1030367, 0, 36362925};
int main() {
  int n;
  scanf("%d", &n);
  long long int ans = a[n];
  for (int i = 1; i <= n; ++i) ans = (1ll * ans * i) % mo;
  printf("%lld", ans);
  return 0;
}
