#include <bits/stdc++.h>
using namespace std;
int n, ans[16];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (!(n & 1)) {
    cout << 0 << '\n';
    return 0;
  }
  ans[1] = 1;
  ans[3] = 18;
  ans[5] = 1800;
  ans[7] = 670320;
  ans[9] = 734832000;
  ans[11] = 890786230;
  ans[13] = 695720788;
  ans[15] = 150347555;
  cout << ans[n] << '\n';
  return 0;
}
