#include <bits/stdc++.h>
using namespace std;
void null() { return; }
const long long maxn = 1e5 + 7, INF = 3e18 + 9237, mod = 1e9 + 7;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 2 == 0)
    cout << 0;
  else if (n == 1)
    cout << 1;
  else if (n == 3)
    cout << 18;
  else if (n == 5)
    cout << 1800;
  else if (n == 7)
    cout << 670320;
  else if (n == 9)
    cout << 734832000;
  else if (n == 11)
    cout << 890786230;
  else if (n == 13)
    cout << 695720788;
  else if (n == 15)
    cout << 150347555;
}
