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