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