#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long n;
cin >> n;
long long m = (n - 2) / 2;
cout << n * m * (m - 1) / 2;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICBjaW4udGllKE5VTEwpOwoKICAgIGxvbmcgbG9uZyBuOwogICAgY2luID4+IG47CiAgICBsb25nIGxvbmcgbSA9IChuIC0gMikgLyAyOwogICAgY291dCA8PCBuICogbSAqIChtIC0gMSkgLyAyOwp9