#include <bits/stdc++.h>
using namespace std;
long long a, b, c, l;
long long cal(long long dif, long long rs) {
  if (rs < 0) return 0;
  long long sum = 0;
  for (int i = 0; i <= rs; i++) {
    long long I = (dif + i <= rs - i ? dif + i : rs - i) + 1;
    sum += I * (I + 1) / 2;
  }
  return sum;
}
int main() {
  cin >> a >> b >> c >> l;
  long long sum = 3 * l + 3 * l * (l - 1) / 2 + l * (l - 1) * (l - 2) / 6 + 1;
  if (a <= b + c)
    sum -= cal(0, l - (b + c - a));
  else
    sum -= cal(a - (b + c), l);
  swap(a, b);
  if (a <= b + c)
    sum -= cal(0, l - (b + c - a));
  else
    sum -= cal(a - (b + c), l);
  swap(a, c);
  if (a <= b + c)
    sum -= cal(0, l - (b + c - a));
  else
    sum -= cal(a - (b + c), l);
  cout << sum << endl;
  return 0;
}
