#include using namespace std; int main(){ int n; cin >> n; n = (n + 1) / 2; cout << n * (n - 1) / 2 + (n - 1) * (n - 2) / 2 << endl; return 0; }