#include <bits/stdc++.h>
using namespace std;
long long func(int a, int b, int c, int l) {
  long long ret = 0;
  for (int x1 = 0; x1 <= l; ++x1) {
    if (a + x1 < b + c) continue;
    int tval = min(l - x1, a + x1 - b - c);
    ret += ((1 + tval + 1ll) * (tval + 1ll)) / 2;
  }
  return ret;
}
int main() {
  int a, b, c, l;
  cin >> a >> b >> c >> l;
  long long ret = ((l + 1ll) * (l + 2ll) * (l + 3ll)) / 6 - func(a, b, c, l) -
                  func(b, a, c, l) - func(c, a, b, l);
  cout << ret << "\n";
  return 0;
}
