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