#include <bits/stdc++.h>
int sum[50];
int main(void) {
  int n[50], i = 0, cc = 0;
  int a, b, c, d;
  while (scanf("%d", &n[i]) != EOF) {
    i++;
    cc++;
  }
  for (i = 0; i < cc; i++) {
    for (a = 0; a <= 1000; a++) {
      if (a == n[i]) {
        sum[i]++;
        break;
      }
      if (a > n[i]) break;
      for (b = 0; b <= 1000; b++) {
        if (a + b == n[i]) {
          sum[i]++;
          break;
        }
        if (a + b > n[i]) break;
        for (c = 0; c <= 1000; c++) {
          if (a + b + c == n[i]) {
            sum[i]++;
            break;
          }
          if (a + b + c > n[i]) break;
          for (d = 0; d <= 1000; d++) {
            if (a + b + c + d > n[i]) break;
            if (a + b + c + d == n[i]) sum[i]++;
          }
        }
      }
    }
    printf("%d\n", sum[i]);
  }
  return 0;
}
