#include <bits/stdc++.h>
using namespace std;
long long totalSum;
long long check(long long a, long long b, long long c, long long r) {
  if (b + c > a) {
    return 0;
  }
  int d = min(a, totalSum - a) - b - c;
  return (d + 2) * (d + 1) / 2;
}
int main() {
  long long a, b, c, l, total;
  cin >> a >> b >> c >> l;
  totalSum = a + b + c + l;
  total = (l + 3) * (l + 2) * (l + 1) / 6;
  for (long long i = 0; i <= l; i++) {
    if (b + c <= a + i) {
      long long d = min(a + i, totalSum - a - i) - b - c;
      total -= (d + 2) * (d + 1) / 2;
    }
    if (a + c <= b + i) {
      long long d = min(b + i, totalSum - b - i) - a - c;
      total -= (d + 2) * (d + 1) / 2;
    }
    if (a + b <= c + i) {
      long long d = min(c + i, totalSum - c - i) - a - b;
      total -= (d + 2) * (d + 1) / 2;
    }
  }
  cout << total << "\n";
}
