object Main{
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val a = sc.nextInt
    val b = sc.nextInt
    val c = sc.nextInt
    val x = sc.nextInt

    var count = 0

    for (i <- 0 to a) {
      for (j <- 0 to b) {
        for (k <- 0 to c) {
          if (i * 500 + j * 100 + k * 50 == x)
            count += 1
        }
      }
    }

    println(count)
  }
}
