#include <bits/stdc++.h>
using namespace std;
const int maxn = 200;
long long C[maxn][maxn];
void init() {
  C[0][0] = 1;
  for (int i = 1; i <= 105; i++) {
    C[i][0] = C[i][i] = 1;
    for (int j = 1; j <= i; j++) {
      C[i][j] = C[i - 1][j - 1] + C[i - 1][j];
    }
  }
}
int main() {
  init();
  int n;
  while (cin >> n) {
    printf("%lld\n", C[n][5] * C[n][5] * 120);
  }
  return 0;
}
