function main(input) {
    const ALL = input.split('\n');
    const A = parseInt(ALL[0], 10),
          B = parseInt(ALL[1], 10),
          C = parseInt(ALL[2], 10),
          X = parseInt(ALL[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){
                let sum = (a*500)+(b*100)+(c*50);
                if(sum===X)++count;
            }
        }
    }
    console.log(count);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));