#include <bits/stdc++.h>
using namespace std;
long long a, b, c, L, s, t;
long long Calc(long long a, long long b, long long c, long long L) {
  long long tmp = 0;
  if (b + c > a) tmp = b + c - a;
  if (tmp > L) return 0;
  a += tmp;
  L -= tmp;
  long long Res = 0;
  for (long long i = 0; i <= L; i++) {
    tmp = min(a + i - b - c, L - i);
    Res += (tmp + 1) * (tmp + 2) / 2;
  }
  return Res;
}
int main() {
  cin >> a >> b >> c >> L;
  t = (L + 1) * (L + 2) * (L + 3) / 6;
  s = Calc(a, b, c, L);
  s += Calc(b, a, c, L);
  s += Calc(c, a, b, L);
  cout << t - s << endl;
  return 0;
}
