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