import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val a = sc.nextInt()
  val b = sc.nextInt()
  val c = sc.nextInt()
  val x = sc.nextInt()

  println(c(a, b, c, x))
}

private fun c(a: Int, b: Int, c: Int, x: Int): Int {
  var ans = 0
  for (i in 0 .. a) {
    val i500 = i * 500
    for (j in 0 .. b) {
      val j100 = j * 100
      for (k in 0 .. c) {
        val k50 = k * 50
        val sum = i500 + j100 + k50
        if (sum == x) {
          ans++
        }
      }
    }
  }

  return ans
}
