#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const double eps = 1e-8;
const double PI = acos(-1.0);
long long calc(long long a, long long b, long long c, long long l) {
  long long ans = 0;
  for (int i = 0; i <= l; i++) {
    long long t1 = a + i - b - c, t2 = l - i;
    long long tmp = min(t1, t2);
    if (tmp < 0) continue;
    ans += (tmp + 1) * (tmp + 2) / 2;
  }
  return ans;
}
int main() {
  int a, b, c, l;
  cin >> a >> b >> c >> l;
  long long ans = (long long)(l + 3) * (l + 2) * (l + 1) / 6;
  ans -= calc(a, b, c, l);
  ans -= calc(b, a, c, l);
  ans -= calc(c, a, b, l);
  cout << ans << endl;
  return 0;
}
