#include <bits/stdc++.h>
using namespace std;
const long long inf = 1000000000ll;
const long long inf64 = inf * inf;
const long long base = inf + 7;
bool solve() {
  long long a, b, c, l, ans = 0;
  cin >> a >> b >> c >> l;
  ans = (l + 1) * (l + 2) * (l + 3) / 6ll;
  for (long long i = 0; i <= l; i++) {
    long long x;
    if (a + i >= b + c) {
      x = min(l - i, a + i - b - c);
      x = max(x, 0ll);
      ans -= (x + 1) * (x + 2) / 2;
    }
    if (b + i >= a + c) {
      x = min(l - i, b + i - a - c);
      x = max(x, 0ll);
      ans -= (x + 1) * (x + 2) / 2;
    }
    if (c + i >= a + b) {
      x = min(l - i, c + i - a - b);
      x = max(x, 0ll);
      ans -= (x + 1) * (x + 2) / 2;
    }
  }
  cout << ans << '\n';
  return true;
}
int main() {
  solve();
  return 0;
}
