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