function Main(input) {
  input = input.split("\n");

  var count=0;
  for(var i=0;i<=Number(input[0]);i++){
    for(var j=0;j<=Number(input[1]);j++){
      if(((Number(input[3])-(500*i+100*j))%50==0)&&((Number(input[3])-(500*i+100*j))/50<=Number(input[2]))&&(Number(input[3])-(500*i+100*j)>=0)){
        count++;
      }
    }
  }
}

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

console.log(count);