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