// 'use strict'

function main(input) {
  input = input
    .trim()
    .split('\n')
    .map(v => Number(v))
  // const ans = (input[0] - input[1]) % input[2]

  // 500, 100, 50
  const A = input[0]
  const B = input[1]
  const C = input[2]
  const X = input[3]

  let count = 0
  for (let ai = 0; ai <= A; ai++) {
    for (let bi = 0; bi <= B; bi++) {
      for (let ci = 0; ci <= C; ci++) {
        if (ai * 500 + bi * 100 + ci * 50 === X) count++
      }
    }
  } 

  console.log(count)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
