A, B, C, X = io.read("*n", "*l"), io.read("*n", "*l"), io.read("*n", "*l"), io.read("*n", "*l")
counter = 0
for i = 0, A do
    for j = 0, B do
        for k = 0, C do
            if 500*i+100*j+50*k == X then
                counter = counter+1
            end
        end
    end
end
print(counter)