#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;
  }
  long long d = min(r, 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++) {
    total -= check(a + i, b, c, l - i);
    total -= check(b + i, a, c, l - i);
    total -= check(c + i, b, a, l - i);
  }
  cout << total << "\n";
}
