#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, l1;
  cin >> a >> b >> c >> l1;
  if (a >= b + c + l1 || b >= a + c + l1 || c >= b + a + l1) {
    cout << 0 << endl;
    return 0;
  }
  long long totalRes = 0;
  for (long long l = 0; l < l1 + 1; ++l) {
    if (a < b + c + l && b < a + c + l && c < b + a + l) {
      long long totRes = (l + 2) * (l + 1) / 2;
      long long left = 0;
      long long tot = a + b + c + l;
      left = l - ((tot % 2 == 0) ? (tot / 2 - a) : (tot / 2 + 1 - a));
      long long badres = 0;
      if (left >= 0) {
        badres += (left + 2) * (left + 1) / 2;
      }
      left = 0;
      tot = a + b + c + l;
      left = l - ((tot % 2 == 0) ? (tot / 2 - b) : (tot / 2 + 1 - b));
      if (left >= 0) {
        badres += (left + 2) * (left + 1) / 2;
      }
      left = 0;
      tot = a + b + c + l;
      left = l - ((tot % 2 == 0) ? (tot / 2 - c) : (tot / 2 + 1 - c));
      if (left >= 0) {
        badres += (left + 2) * (left + 1) / 2;
      }
      totalRes += totRes - badres;
    }
  }
  cout << totalRes << endl;
  return 0;
}
