import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    //nextLineとnextを同時に使ったら死ぬ
    val sc = new Scanner(System.in)
    val a, b, c, x = sc.nextInt()
    var ans = 0
    for (i <- 0 to a) {
      for (j <- 0 to b) {
        val cc = x - i * 500 - j * 100
        if (0 <= cc / 50 && cc / 50 <= c) ans += 1
      }
    }
    println(ans)
  }
}
