function Main(input) {
  const arr = input.split('\n').map(x=>Number(x));
  const a = arr[0];
  const b = arr[1];
  const c = arr[2];
  const x = arr[3];
  var count = 0;

  for (var i = 0; i <= a; i++) {
    for (var j = 0; j <= b; j++) {
      for (var k = 0; k <= c; k++) {
        const sum = 500 * i + 100 * j + 50 * k;

        if (sum === x) count++;
      }
    }
  }

  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));