#include <bits/stdc++.h>
using namespace std;
inline long long min(int a, int b) { return a < b ? a : b; }
long long func(long long a, long long b, long long c, long long l) {
  long long ret = 0, rem = 0;
  if (a < b + c) rem = b + c - a;
  if (rem > l) return 0;
  a += rem;
  l -= rem;
  for (long long add = 0; add <= l; add++) {
    rem = min(a + add - b - c, l - add);
    ret += (rem + 2) * (rem + 1) / 2;
  }
  return ret;
}
int main() {
  long long a, b, c, l, total, sum;
  total = sum = 0;
  cin >> a >> b >> c >> l;
  total = (l + 3) * (l + 2) * (l + 1) / 6;
  sum += func(a, b, c, l);
  sum += func(b, a, c, l);
  sum += func(c, a, b, l);
  cout << total - sum << endl;
  return 0;
}
