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