function Main(input){
  var inp = input.split('\n');
  var A = parseInt(inp[0].trim());
  var B = parseInt(inp[1].trim());
  var C = parseInt(inp[2].trim());
  var X = parseInt(inp[3].trim());

  var count = 0;
  for(var i = 0; i <= A; i++){
    for(var j = 0; j <= B; j++){
      for(var k = 0; k <= C; k++){
        if((500 * i) + (100 * j) + (50 * k) === X){
          count++;
        }
      }
    }
  }
  console.log(count);
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
