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