#include <bits/stdc++.h>
using namespace std;
int n = 0;
long long A, B, C, L;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> A >> B >> C >> L;
  long long T = (L + 1) * (L + 2) * (L + 3);
  T /= 6;
  for (int l = 0; l <= L; ++l) {
    if (A + l >= (B + C)) {
      long long x = min(A - B - C + l, L - l);
      T -= ((x + 1) * (x + 2)) / 2;
    }
    if (B + l >= (A + C)) {
      long long x = min(B - A - C + l, L - l);
      T -= ((x + 1) * (x + 2)) / 2;
    }
    if (C + l >= A + B) {
      long long x = min(C - A - B + l, L - l);
      T -= ((x + 1) * (x + 2)) / 2;
    }
  }
  cout << T;
}
