#include <bits/stdc++.h>
using namespace std;
int main() {
  long double num, i, n, x, s;
  cin >> num;
  x = num;
  num = 1;
  for (i = 5; i > 0; i--) {
    num = ((x * x) / (i)) * num;
    x--;
  }
  cout << fixed << setprecision(0) << num;
  return 0;
}
