#include <bits/stdc++.h>
int n, d[5][4001];
int main() {
  d[0][0] = 1;
  for (int i = 0; i < 4; i++)
    for (int j = 4000; j >= 0; j--)
      for (int k = 4000 - j; k >= 0; k--) d[i + 1][j + k] += d[i][j];
  while (scanf("%d", &n) != EOF) printf("%d\n", d[4][n]);
}
