#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const long long infll = 0x3f3f3f3f3f3f3f3fLL;
int main() {
  int a, b, c, l;
  cin >> a >> b >> c >> l;
  long long sum = 0;
  for (int la = 0; la <= l; la++) {
    if (a + la - b - c >= 0) {
      long long x = min(a + la - b - c, l - la);
      sum += (x + 1) * (x + 2) / 2;
    }
  }
  for (int lb = 0; lb <= l; lb++) {
    if (b + lb - a - c >= 0) {
      long long x = min(b + lb - a - c, l - lb);
      sum += (x + 1) * (x + 2) / 2;
    }
  }
  for (int lc = 0; lc <= l; lc++) {
    if (c + lc - b - a >= 0) {
      long long x = min(c + lc - a - b, l - lc);
      sum += (x + 1) * (x + 2) / 2;
    }
  }
  long long ans = 1LL * (l + 1) * (l + 2) * (l + 3) / 6;
  cout << ans - sum << endl;
  return 0;
}
