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