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