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