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