"use strict";

function main(input) {
  input = input.split(/\n/).map(v => ~~v);
  let [A, B, C, X] = input;

  //   const A = input[0];
  //   const B = input[1];
  //   const C = input[2];
  //   const X = input[3] / 50;

  let ans = 0;
  for (let i = 0; i <= A; i++) {
    for (let j = 0; j <= B; j++) {
      for (let k = 0; k <= C; k++) {
        if (i * 500 + j * 100 + k * 50 === X) ans++;
      }
    }
  }

  console.log(ans);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
