#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 10;
const int maxm = 3e5 + 10;
const int mod = 2015;
const int inf = 0x3f3f3f3f;
long long sum[maxn];
long long calc(long long c, long long a, long long b, long long l) {
  long long ret = 0;
  for (int i = max(a + b, c); i - c <= l; i++) {
    int lev = min(i - (a + b), l - (i - c));
    ret += sum[lev];
  }
  return ret;
}
int main() {
  long long a, b, c, l;
  cin >> a >> b >> c >> l;
  long long ans = 0;
  for (int i = 0; i <= l; i++) {
    ans += (long long)(i + 2) * (i + 1) / 2;
    if (i == 0)
      sum[i] = 1;
    else {
      sum[i] = sum[i - 1] + i + 1;
    }
  }
  ans -= calc(a, b, c, l);
  ans -= calc(b, a, c, l);
  ans -= calc(c, a, b, l);
  cout << ans << endl;
  return 0;
}
