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

    println(
      (for (i <- 0 to a; j <- 0 to b; k <- 0 to c; if 500*i + 100*j + 50*k == x) yield ())
      .length
    )
  }
}
