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