#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long t = 1;
  long long i = 1;
  while (i != n) {
    i += 1;
    t *= i;
  }
  cout << t / (n * n / 2) << endl;
}
