function main(input){
  var _input = input.split('\n')
  var a500 = parseInt(_input[0]) 
  var b100 = parseInt(_input[1]) 
  var c50 = parseInt(_input[2]) 
  var total = parseInt(_input[3]) 
  var counter = 0
  var _total
  for (var a = 0; a <= a500 ; a++) {
    _total = 0
     for (var b = 0; b <= b100 ; b++) {
        for (var c = 0; c <= c50 ; c++) {
          _total = 500 * a + 100 * b + 50 * c
          if (_total === total) {
            counter++
            break
          }else if (_total > total) break
      }
        if (_total > total) break
    }
  }
  console.log(counter)
}


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