#include <bits/stdc++.h>
int main() {
  int a, b, c, l;
  scanf("%d%d%d%d", &a, &b, &c, &l);
  long long int result = ((long long int)l + 1) * (l + 2) * (l + 3) / 6;
  long long int help = 0;
  for (int i = 0; i <= l; i++) {
    help = std::min(i, (a - b - c + i) / 2);
    if (b + c <= a + i) {
      result -= (help + 1) * (help + 2) / 2;
    }
  }
  for (int i = 0; i <= l; i++) {
    help = std::min(i, (b - a - c + i) / 2);
    if (a + c <= b + i) {
      result -= (help + 1) * (help + 2) / 2;
    }
  }
  for (int i = 0; i <= l; i++) {
    help = std::min(i, (c - a - b + i) / 2);
    if (a + b <= c + i) {
      result -= (help + 1) * (help + 2) / 2;
    }
  }
  printf("%lld", result);
  return 0;
}
