'use strict'

function main(input) {
  input = input
    .trim()
    .split(/\n/)
    .map(Number)
  const a = input[0]
  const b = input[1]
  const c = input[2]
  const x = input[3]
  let ans = 0
  for (let ai = 0; ai <= a; ai++) {
    for (let bi = 0; bi <= b; bi++) {
      for (let ci = 0; ci <= c; ci++) {
        const sum = ai * 500 + bi * 100 + ci * 50
        if (sum === x) ans++
      }
    }
  }
  console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
