#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int main() { int N; cin >> N; int cnt = 0; for (int x = 0; x <= 3000; x++) { for (int y = 0; y <= 3000; y++) { int z = N - x - y; if (z >= 0) cnt++; } } cout << cnt << endl; return 0; }