#include <bits/stdc++.h>
using namespace std;
int i, j, k, a, b, c, l;
long long ans;
void W(long long x) {
  if (x >= 10) W(x / 10);
  putchar(x % 10 + '0');
}
long long calc(int a, int b, int c, int l) {
  int x = b + c - a;
  long long ans = 0;
  if (x < 0) x = 0;
  for (; x <= l; x++) {
    int t = a + x - b - c;
    if (l - x < t) t = l - x;
    if (t >= 0) ans += (long long)(t + 1) * (t + 2) / 2;
  }
  return ans;
}
int main() {
  scanf("%d%d%d%d", &a, &b, &c, &l);
  ans = (long long)(l + 3) * (l + 2) * (l + 1) / 6;
  ans -= calc(a, b, c, l);
  ans -= calc(b, c, a, l);
  ans -= calc(c, a, b, l);
  W(ans);
  puts("");
}
