open System

let A = stdin.ReadLine() |> int
let B = stdin.ReadLine() |> int
let C = stdin.ReadLine() |> int
let X = stdin.ReadLine() |> int

let mutable count = 0

for i in 0..A do
    for j in 0..B do
        for k in 0..C do
            if i * 500 + j * 100 + k * 50 = X then
                count <- count + 1


printfn "%d" count
