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