#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int a, b, c, x;
  int ans = 0;
  cin >> a >> b >> c >> x;
  for (int i = 0; i <= a; i++) {
    for (int j = 0; j <= b; j++) {
      for (int k = 0; k <= c; k++) {
        int sum = 500 * i + 100 * j + 50 * k;
        if (sum == x) ans++;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
