#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll a, b, c, l, p, ans;
int main() {
  auto calc = [](int a, int b, int l) {
    ll r = min(a - b, l);
    return a < b ? 0 : (r + 1) * (r + 2) / 2;
  };
  cin >> a >> b >> c >> l;
  ans = (l + 1) * (l + 2) * (l + 3) / 6;
  while (l + 1)
    ans -=
        calc(a + p, b + c, l) + calc(b + p, a + c, l) + calc(c + p, a + b, l),
        p++, l--;
  cout << ans;
  return 0;
}
