object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a, b, c, x = sc.nextInt()
  val xs = for {
    a <- (0 to a).toIterator.map(_ * 500)
    b <- (0 to b).toIterator.map(_ * 100)
    c <- (0 to c).toIterator.map(_ * 50)
    if (a + b + c) == x
  } yield {
  }
  val ret = xs.toList.length
  println(ret)
}
