import java.io.InputStream
import java.io.PrintStream
import java.util.*

class Abc087B(
    val input: InputStream,
    val output: PrintStream
) {
    /**
     * X は 50 の倍数である
     */
    fun proc() {
        val sc = Scanner(input)
        val a = sc.nextInt()
        val b = sc.nextInt()
        val c = sc.nextInt()
        val x = sc.nextInt()

        var result = 0
        for (ia in 0..a) {
            for (ib in 0..b) {
                for (ic in 0..c) {
                    if (ia * 500 + ib * 100 + ic * 50 == x) {
                        result++
                    }
                }
            }
        }
        output.print(result)
    }
}

fun main(args: Array<String>) {
    Abc087B(System.`in`, System.out).proc()
}
