#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int d[3];
  long long l;
  cin >> d[0] >> d[1] >> d[2] >> l;
  long long ans = 0;
  for (int i = 0; i < 3; ++i) {
    for (long long ql = 0; ql <= l; ++ql) {
      long long x = min(l - ql, d[i] - d[(i + 1) % 3] - d[(i + 2) % 3] + ql);
      if (x >= 0) {
        ans += (x + 2) * (x + 1) / 2;
      }
    }
  }
  cout << (l + 1) * (l + 2) * (l + 3) / 6 - ans << endl;
  return 0;
}
