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