open System

let a = stdin.ReadLine() |> int
let b = stdin.ReadLine() |> int
let c = stdin.ReadLine() |> int
let x = stdin.ReadLine() |> int
let mutable m = 0
for i in [0..a] do
    for j in [0..b] do
        for k in [0..c] do
            if 500 * i + 100 * j + 50 * k = x then
                m <- m + 1

printfn "%d" m