#include using namespace std; int main(){ long long L; cin >> L; cout << (L-1)*(L-1)/4 << endl; return 0; }