#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 2e5 + 5;
long long a, b, c, l;
long long abs1(long long a) { return a > 0 ? a : 0; }
long long cal(long long x) { return (x + 1) * (x + 2) / 2; }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  while (cin >> a >> b >> c >> l) {
    long long ans = (l + 3) * (l + 2) * (l + 1) / 6;
    for (int i = 0; i <= l; i++) {
      if (a + i >= b + c)
        ans -= cal(abs1((l - i) < (a + i - b - c) ? (l - i) : (a + i - b - c)));
      if (b + i >= a + c)
        ans -= cal(abs1((l - i) < (b + i - a - c) ? (l - i) : (b + i - a - c)));
      if (c + i >= b + a)
        ans -= cal(abs1((l - i) < (c + i - b - a) ? (l - i) : (c + i - b - a)));
    }
    cout << ans << endl;
  }
  return 0;
}
