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