#include using namespace std; int main() { int64_t n; cin >> n; int64_t ans = 0; for (int64_t i = 0; i <= n; i++) { for (int64_t j = 0; i + j <= n; j++) { if (n - i - j >= 0) ans++; } } cout << ans << '\n'; return 0; }