function main(argString) {
  var num = 0;
  var split = argString.split('\n');
  var A = Number(split[0]), B = Number(split[1]), C = Number(split[2]), X = Number(split[3]);
  for (var a = 0; a <= A; a++) {
    for (var b = 0; b <= B; b++) {
    	for (var c = 0; c <= C; c++) {
    		if ((500 * a + 100 * b + 50 * c) === X) num++;
  		}
  	}
  }
  console.log(num);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));