#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
long long bad(long long a, long long b, long long c) {
  long long ret = 0;
  for (long long i = 0; i <= l; i++) {
    long long aa = a + i;
    long long r = l - i;
    long long s = b + c;
    if (s > aa) continue;
    r = min(r, aa - s);
    long long k = (1 + (r + 1)) * 1ll * (r + 1) / 2;
    ret += k;
  }
  return ret;
}
int main() {
  cin >> a >> b >> c >> l;
  long long all = 0;
  all = (l + 1) * (l + 2) * (l + 3) / 6;
  all -= bad(a, b, c);
  all -= bad(b, a, c);
  all -= bad(c, a, b);
  cout << all << endl;
  return 0;
}
