#include <bits/stdc++.h>
using namespace std;
long long l;
long long tot, sub;
long long min(int a, long long b) { return min((long long)a, b); }
int main() {
  ios_base::sync_with_stdio(0);
  int a, b, c;
  cin >> a >> b >> c >> l;
  tot = (l + 1) * (l + 2) / 2 * (l + 3) / 3;
  for (int lc = 0; lc <= l; lc++) {
    long long num = min(a - b - c + lc, l - lc);
    if (num < 0) continue;
    sub += (num + 1) * (num + 2) / 2;
  }
  for (int lc = 0; lc <= l; lc++) {
    long long num = min(b - a - c + lc, l - lc);
    if (num < 0) continue;
    sub += (num + 1) * (num + 2) / 2;
  }
  for (int lc = 0; lc <= l; lc++) {
    long long num = min(c - b - a + lc, l - lc);
    if (num < 0) continue;
    sub += (num + 1) * (num + 2) / 2;
  }
  cout << tot - sub << '\n';
}
