#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
int main() {
  while (cin >> a >> b >> c >> l) {
    long long ans = 0;
    long long maxsum = a + b + c + l;
    for (long long i = a; i <= a + l; i++)
      if (b + c > i)
        continue;
      else {
        ans += (min(i, maxsum - i) - b - c + 1) *
               (min(i, maxsum - i) - b - c + 2) / 2;
      }
    for (long long i = b; i <= b + l; i++)
      if (a + c > i)
        continue;
      else
        ans += (min(i, maxsum - i) - a - c + 1) *
               (min(i, maxsum - i) - a - c + 2) / 2;
    for (long long i = c; i <= c + l; i++)
      if (b + a > i)
        continue;
      else
        ans += (min(i, maxsum - i) - b - a + 1) *
               (min(i, maxsum - i) - b - a + 2) / 2;
    printf("%I64d\n", (l + 1) * (l + 2) * (l + 3) / 6 - ans);
  }
}
