
object Main extends App{
  import scala.io.Source._
  val a = readLine().toInt
  val b = readLine().toInt
  val c = readLine().toInt
  val x = readLine().toInt
  println((0 to a).filter(n => n * 500 <= x).map{n => x - 500 * n}.map{newx => (0 to b).filter(n => n * 100 <= newx).map{n => newx - 100 * n}.filter{nnx => nnx % 50 == 0 && nnx / 50 <= c}.length}.sum)
}