#include <bits/stdc++.h>
using namespace std;
constexpr int MM = 998244353;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  long long n;
  cin >> n;
  long long a = n / 1 * (n - 1) / 2 * (n - 2) / 3 * (n - 3) / 4 * (n - 4) / 5;
  long long b = n / 1 * (n - 1) / 1 * (n - 2) / 1 * (n - 3) / 1 * (n - 4) / 1;
  cout << a * b;
  return 0;
}
