#include <bits/stdc++.h>
const int MAX = 1e5 + 11;
using namespace std;
int64_t A, B, C, L;
static int64_t f(int64_t a, int64_t b, int64_t c, int64_t l) {
  if (a < b + c) {
    return 0;
  }
  int64_t r = min(a - b - c, L - l);
  return (r + 1) * (r + 2) / 2;
}
int main() {
  cin >> A >> B >> C >> L;
  int64_t res = (L + 1) * (L + 2) * (L + 3) / 6;
  for (int i = 0; i <= L; ++i) {
    res -= f(A + i, B, C, i);
    res -= f(B + i, A, C, i);
    res -= f(C + i, B, A, i);
  }
  cout << res;
  return 0;
}
