#include <bits/stdc++.h>
using namespace std;
int a, b, c, l;
long long solve() {
  long long r = 1LL * (l + 1) * (l + 2) * (l + 3) / 6;
  for (int i = 0; i <= l; ++i) {
    long long m = min(l - i, a + i - b - c);
    if (m >= 0) {
      r -= (m + 1) * (m + 2) / 2;
    }
  }
  for (int i = 0; i <= l; ++i) {
    long long m = min(l - i, b + i - a - c);
    if (m >= 0) {
      r -= (m + 1) * (m + 2) / 2;
    }
  }
  for (int i = 0; i <= l; ++i) {
    long long m = min(l - i, c + i - a - b);
    if (m >= 0) {
      r -= (m + 1) * (m + 2) / 2;
    }
  }
  return r;
}
int main() {
  cin >> a >> b >> c >> l;
  cout << solve();
  return 0;
}
