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