#include <bits/stdc++.h>
using namespace std;
int a, b, c, l;
long long ans;
void calc() {
  for (int i = 0; i <= l; i++) {
    int t = min(c + i - a - b, l - i);
    if (t < 0) continue;
    ans -= (long long)(t + 1) * (t + 2) / 2;
  }
}
int main() {
  scanf("%d%d%d%d", &a, &b, &c, &l);
  ans = (long long)(l + 1) * (l + 2) * (l + 3) / 6;
  calc();
  swap(b, c);
  calc();
  swap(a, c);
  calc();
  printf("%I64d", ans);
  return 0;
}
