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

  var A = ~~input[0];
  var B = ~~input[1];
  var C = ~~input[2];
  var X = ~~input[3];

var You = function(){
  this.match = 0;
};

You.prototype = {
  procedure: function(){
    this.match = 0;
    for(var a=0; a<=A; a++){
      for(var b=0; b<=B; b++){
        for(var c=0; c<=C; c++){
          if(a*500+b*100+c*50 == X){
            this.match++;
          }
        }
      }
    }
    return this.match;
  }
}

var you = new You();

console.log(you.procedure());

  // console.log('%d %d',N,Q);
}


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