function Main(input) {
  "use strict";
  const lines = input.split("\n");
  const line1 = lines[0].split(" ");
  const line2 = lines[1].split(" ");
  const line3 = lines[2].split(" ");
  const line4 = lines[3].split(" ");

  const a = parseInt(line1[0], 10);
  const b = parseInt(line2[0], 10);
  const c = parseInt(line3[0], 10);
  const x = parseInt(line4[0], 10);

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

        }

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