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