#include <bits/stdc++.h>
using namespace std;
int a, b, c, l;
long long illegal(int a, int b, int c) {
  long long tmp = 0;
  for (int i = 0; i <= l; i++) {
    int cnt = min(a - b - c + i, l - i);
    if (cnt >= 0) tmp = tmp + 1ll * (cnt + 1) * (cnt + 2) / 2;
  }
  return tmp;
}
int main() {
  scanf("%d%d%d%d", &a, &b, &c, &l);
  long long total;
  total = 1ll * (l + 1) * (l + 2) * (l + 3) / 6;
  total = total - illegal(a, b, c) - illegal(b, c, a) - illegal(c, b, a);
  cout << total << endl;
  return 0;
}
