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