#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
long long solve(long long a, long long b, long long c) {
  long long s = 0;
  for (long long la = 0; la <= l; la++) {
    long long x = min(l - la, la + a - b - c);
    if (x >= 0) s += (x + 2) * (x + 1) / 2;
  }
  return s;
}
int main() {
  while (~scanf("%d%d%d%d", &a, &b, &c, &l)) {
    long long ans = 0;
    for (long long i = 0; i <= l; i++) ans += (i + 1) * (i + 2) / 2;
    ans = ans - solve(a, b, c) - solve(b, a, c) - solve(c, a, b);
    printf("%lld\n", ans);
  }
}
