#include <bits/stdc++.h>
using namespace std;
long long int min(long long int a, long long int b) { return a < b ? a : b; }
long long int combination(long long int n, long long int r) {
  if (n < r) return 0;
  if (r == 0) return 1;
  if (r > n) return 0;
  if (r == n) return 1;
  return (n * combination(n - 1, r - 1)) / r;
}
int main() {
  long long int a, b, c, l;
  cin >> a >> b >> c >> l;
  long long int total = combination(l + 3, 3), sub = 0;
  long long int x;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j <= l; j++) {
      if (i == 0)
        x = min(a - b - c + j, l - j);
      else if (i == 1)
        x = min(b - c - a + j, l - j);
      else if (i == 2)
        x = min(c - a - b + j, l - j);
      sub += combination(x + 2, 2);
    }
  }
  cout << total - sub << endl;
  return 0;
}
