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