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

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