#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b, c, l;
  cin >> a >> b >> c >> l;
  array<int, 3> sides{a, b, c};
  long long ways =
      ((long long)l + 3) * ((long long)l + 2) * ((long long)l + 1) / 6;
  for (int i = 0; i < sides.size(); ++i) {
    int A = sides[i];
    int B = sides[(i + 1) % 3] + sides[(i + 2) % 3];
    int minLa = max(0, B - A);
    for (int la = minLa; la <= l; ++la) {
      long long n = min(A + la - B, l - la) + 1;
      ways -= (n + 1) * n / 2;
    }
  }
  cout << ways << endl;
  return 0;
}
