#include <bits/stdc++.h>
int main() {
  int n, a, b, c, d, cnt;
  while (scanf("%d", &n) != EOF) {
    cnt = 0;
    for (a = 1000; a >= 0; a--) {
      for (b = n - a; b >= 0; b--) {
        for (c = n - b; c >= 0; c--) {
          for (d = n - c; d >= 0; d--) {
            if (a + b + c + d == n) {
              cnt++;
            }
          }
        }
      }
    }
    printf("%d\n", cnt);
  }
  return 0;
}
