#include <bits/stdc++.h>
using namespace std;
long long l, ans;
void f(int a, int b, int c) {
  long long x, i, sum = 0, p;
  if (c + b > l + a) return;
  p = l;
  p -= max(0, b + c - a);
  a += max(0, b + c - a);
  for (i = 0; i <= p; i++) {
    x = min(a - c - b + i, p - i);
    ans -= ((x + 1) * (x + 2)) / 2;
  }
}
int main() {
  long long a, b, c;
  cin >> a >> b >> c >> l;
  ans = ((l + 1) * (l + 2) * (l + 3)) / 6;
  f(a, b, c), f(b, a, c), f(c, a, b);
  cout << ans;
  return 0;
}
