object Main extends App {
  val Array(a, b, c, x) = Iterator.continually(io.StdIn.readLine.toInt)
    .take(4).toArray

  val ans = {
    val A = math.min(a, x/500:Int)
    val B = math.min(b, x/100:Int)
    for {
      i <- 0 to A
      c0 = 500*i
      j <- 0 to B
      c1 = 100*j
      if c0 + c1 <= x
      k <- 0 to c
      if c0 + c1 + 50*k == x
    } yield true
  }.size

  println(ans)
}
