import java.util.*

fun main(args: Array<String>){
    val sc = Scanner(System.`in`)
    val A = sc.nextInt()
    val B = sc.nextInt()
    val C = sc.nextInt()
    val X = sc.nextInt()
    var ans = 0
    for (i in (0..A)){
        for (j in (0..B)){
            if(i * 500 + j * 100 <= X && X <= i * 500 + j * 100 + C * 50){
                ans += 1
            }
        }
    }
    println(ans)
}
