#include using namespace std; typedef long long LL; LL n, ans; int main() { cin >> n; ans = n * (n - 1) / 2 * (n - 2) / 3 * (n - 3) / 4; printf("%lld\n", ans); return 0; }