#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  switch (n) {
    case 1:
      cout << 1 << endl;
      break;
    case 2:
      cout << 0 << endl;
      break;
    case 3:
      cout << 18 << endl;
      break;
    case 4:
      cout << 0 << endl;
      break;
    case 5:
      cout << 1800 << endl;
      break;
    case 6:
      cout << 0 << endl;
      break;
    case 7:
      cout << 670320 << endl;
      break;
    case 8:
      cout << 0 << endl;
      break;
    case 9:
      cout << 734832000 << endl;
      break;
    case 10:
      cout << 0 << endl;
      break;
    case 11:
      cout << 890786230 << endl;
      break;
    case 12:
      cout << 0 << endl;
      break;
    case 13:
      cout << 695720788 << endl;
      break;
    case 14:
      cout << 0 << endl;
      break;
    case 15:
      cout << 150347555 << endl;
      break;
    case 16:
      cout << 0 << endl;
      break;
  }
  return 0;
}
