#include int main(void){ long long L; scanf("%lld", &L); printf("%lld\n", (L-1)*(L-1)/4); return 0; }