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