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