#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
long long ans = 0;
long long count(long long x, long long y, long long z, long long L) {
  long long ret = 0;
  for (long long i = max((long long)(0), x + y - z); i <= L; i++) {
    long long now = min(L - i, z + i - x - y);
    ret += (now + 1) * (now + 2) / 2;
  }
  return ret;
}
int main() {
  scanf("%lld %lld %lld %lld", &a, &b, &c, &l);
  ans++;
  for (long long i = 1; i <= l; i++) ans += (i + 1) * (i + 2) / 2;
  ans -= count(a, b, c, l);
  ans -= count(a, c, b, l);
  ans -= count(c, b, a, l);
  printf("%lld\n", ans);
}
