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