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