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