/* ---------- STL Libraries ---------- */ // IO library #include #include #include #include #include // algorithm library #include #include #include #include #include // container library #include #include #include #include #include #include #include #include #include #include #include /* ---------- Namespace ---------- */ using namespace std; /* ---------- Type ---------- */ using ll = long long; #define int ll #define P pair /* ---------- Constants */ const double PI = 3.141592653589793238462643383279; const ll MOD = 1e9 + 7; const int INF = 1LL << 55; /* v-v-v-v-v-v-v-v-v Main Part v-v-v-v-v-v-v-v-v */ signed main() { int N; cin >> N; int ret = 0; for (int i = 0; i < N/2; i++) { ret += (i + 1) * (N - 1 - i); if (i == N/2 && N % 2 == 0) break; ret += (i + 2) * (N - 1 - i); } ret += N/2 + 1; cout << ret << endl; return 0; }