#include <bits/stdc++.h>
using namespace std;
long long ans;
int main() {
  int a, b, c, l;
  scanf("%d%d%d%d", &a, &b, &c, &l);
  int tot = a + b + c + l;
  for (int i = a; i <= a + l; i++) {
    if (b + c > i)
      continue;
    else
      ans += (long long)(min(i, tot - i) - b - c + 1) *
             (min(i, tot - i) - b - c + 2) / 2;
  }
  for (int i = b; i <= b + l; i++) {
    if (a + c > i)
      continue;
    else
      ans += (long long)(min(i, tot - i) - a - c + 1) *
             (min(i, tot - i) - a - c + 2) / 2;
  }
  for (int i = c; i <= c + l; i++) {
    if (b + a > i)
      continue;
    else
      ans += (long long)(min(i, tot - i) - b - a + 1) *
             (min(i, tot - i) - b - a + 2) / 2;
  }
  cout << (long long)(l + 1) * (l + 2) / 2 * (l + 3) / 3 - ans << endl;
  return 0;
}
