#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10;
const double pi = acos(-1.0);
const double inf = (int)1e8;
int main() {
  int n;
  while (cin >> n) {
    int ret = 0;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j <= min(n - i, 1000); j++) {
        for (int k = 0; k <= min(n - i - j, 1000); k++) {
          for (int l = 0; l <= min(n - i - j - k, 1000); l++)
            if (i + j + k + l == n) ret++;
        }
      }
    }
    cout << ret + 1 << endl;
  }
}
