#include <bits/stdc++.h>
using namespace std;
const long long Ar[20] = {1,
                          1,
                          2,
                          3,
                          6,
                          40,
                          80,
                          1260,
                          2520,
                          72576,
                          145152,
                          6652800,
                          13305600,
                          889574400,
                          1779148800,
                          163459296000,
                          326918592000,
                          39520825344000,
                          79041650688000,
                          12164510040883200};
void Input() {
  long long n;
  cin >> n;
  cout << Ar[n - 1];
}
int main() {
  if (fopen("trash.inp", "r"))
    freopen("trash.inp", "r", stdin), freopen("trash.out", "w", stdout);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  Input();
}
