#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
long long solve(int a, int b, int c, int l) {
  if (a - b - c < 0) return 0;
  long long mini = min(a - b - c, l);
  return ((mini + 1) * (mini + 2) >> 1);
}
int main(int argc, char const *argv[]) {
  scanf("%I64d%I64d%I64d%I64d", &a, &b, &c, &l);
  long long sum = (l + 1) * (l + 2) * (l + 3) / 6;
  for (int i = 0; i <= l; i++) {
    sum -= solve(a + i, b, c, l - i);
    sum -= solve(b + i, a, c, l - i);
    sum -= solve(c + i, b, a, l - i);
  }
  printf("%lld\n", sum);
  return 0;
}
