#include <bits/stdc++.h>
using namespace std;
long long a[] = {0,    1, 0,     3, 0,       15, 0,        133, 0,
                 2025, 0, 37851, 0, 1030367, 0,  36362925, 0};
int main() {
  long long ans, i;
  int n;
  cin >> n;
  ans = a[n];
  for (i = n; i > 1; i--) ans *= i, ans %= (int)(1e+9) + 7;
  cout << ans;
}
