"use strict";
function Main(input) {
  input = input.split("\n");
  input[0] = parseInt(input[0]);
  input[1] = parseInt(input[1]);
  input[2] = parseInt(input[2]);
  let money = [];
  let a = 0;
  for (let i = 0; i <= input[2]; i++) {
    for (let n = 0; n <= input[1]; n++) {
      for (let m = 0; m <= input[0]; m++) {
        money[a] = i * 50 + n * 100 + m * 500;
        a++;
      }
    }
  }
  let result = 0;
  for (const item of money) {
    if (item === parseInt(input[3])) {
      result++;
    }
  }
  console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf-8"));
