
fun main(args: Array<String>){
    val a = readLine()!!.toInt()
    val b = readLine()!!.toInt()
    val c = readLine()!!.toInt()
    val x = readLine()!!.toInt()

    var ret = 0
    for(i in 0..a){
        val xx = x - 500 * i
        if(xx == 0){
            ret += 1
            break
        }
        if(xx < 0) break
        for(j in 0 .. b){
            val xxx = xx - 100 * j
            if(xxx == 0){
                ret += 1
                break
            }
            if(xxx < 0) break
            if(xxx <= 50 * c) ret += 1
        }
    }
    print(ret)
}