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