a = io.read("*number")
b = io.read("*number")
c = io.read("*number")
x = io.read("*number")
ans = 0

for i = 0, a do
  for j = 0, b do
    for k = 0, c do
      if i*500+j*100+k*50 == x then
        ans = ans + 1
      end
    end
  end
end
print(ans)