"use strict";

var main = function main(input) {
  var A = parseInt(input.split("\n")[0], 10);
  var B = parseInt(input.split("\n")[1], 10);
  var C = parseInt(input.split("\n")[2], 10);
  var X = parseInt(input.split("\n")[3], 10);
  var count = 0;

  for (var i = 0; i <= A; i++) {
    for (var j = 0; j <= B; j++) {
      for (var k = 0; k <= C; k++) {
        var total = 500 * i + 100 * j + 50 * k;

        if (total == X) {
          count++;
        }
      }
    }
  }

  console.log(count);
};

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