#include<bits/stdc++.h>
using namespace std;
typedef long long Int;
Int sqr(int x) { return (Int) x*x; }
int main()
{
int n;
cin >> n;
Int ans = 0;
for (int side = 1; side <= n; side++) {
int first = (side+2)/2 ; //2*first-1 >= x
int last = n-side+1;
if (first > last) break;
Int cnt = sqr(last) - sqr(first-1) - (Int) (side-1) * (last-first+1);
ans += cnt;
}
cout << ans;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnR5cGVkZWYgbG9uZyBsb25nIEludDsKSW50IHNxcihpbnQgeCkgeyByZXR1cm4gKEludCkgeCp4OyB9CgppbnQgbWFpbigpCnsKCWludCBuOwoJY2luID4+IG47CglJbnQgYW5zID0gMDsKCWZvciAoaW50IHNpZGUgPSAxOyBzaWRlIDw9IG47IHNpZGUrKykgewoJCWludCBmaXJzdCA9IChzaWRlKzIpLzIgOyAvLzIqZmlyc3QtMSA+PSB4CgkJaW50IGxhc3QgPSBuLXNpZGUrMTsKCQlpZiAoZmlyc3QgPiBsYXN0KSBicmVhazsKCQlJbnQgY250ID0gc3FyKGxhc3QpIC0gc3FyKGZpcnN0LTEpIC0gKEludCkgKHNpZGUtMSkgKiAobGFzdC1maXJzdCsxKTsKCQlhbnMgKz0gY250OwoJfQoJY291dCA8PCBhbnM7Cn0K