'use strict'

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

    let count = 0;

    for (let a = 0; a <= A; ++a) {
        for (let b = 0; b <= B; ++b) {
            for (let c = 0; c <= C; ++c) {
                if ((a * 500) + (b * 100) + (c * 50) === X) count++;
            }
        }
    }
    console.log(count);
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));