#include <bits/stdc++.h>
using namespace std;
long long C2(long long i) {
  if (i < 0) return 0;
  return ((i - 1) * i) / 2;
}
long long solve(long long a, long long b, long long c, long long L) {
  return C2(L + 2) - C2(L + 2 - a) - C2(L + 2 - b) - C2(L + 2 - c) +
         C2(L + 2 - a - b) + C2(L + 2 - b - c) + C2(L + 2 - c - a) -
         C2(L + 2 - a - b - c);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long a, b, c, L, la, lb, lc, ans = 0;
  cin >> a >> b >> c >> L;
  for (long long i = 0; i <= L; i++) {
    la = (b + c - a + i);
    lb = (c + a - b + i);
    lc = (a + b - c + i);
    if (la <= 0 || lb <= 0 || lc <= 0) continue;
    la = (la + 1) / 2;
    lb = (lb + 1) / 2;
    lc = (lc + 1) / 2;
    ans += solve(la, lb, lc, i);
  }
  cout << ans << '\n';
  return 0;
}
