#include <stdio.h> main() { unsigned long long int n; scanf("%ull",&n); printf("%llu",n*(n-1)*(n-2)*(n-3)/24); }