function Main(input){
  var list = input.split("\n");
  var cnt = 0;
  for(var i=0;i<=Number(list[0]);i++){
    for(var j=0;j<=Number(list[1]);j++){
      for(var k=0;k<=Number(list[2]);k++){
        if(i*500+j*100+k*50==Number(list[3]))cnt++;
      }
    }
  }
  console.log(cnt);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));