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