"use strict";

const main=(input)=>{
    const args= input.split('\n').map((n)=>parseInt(n,10));
    const coinA=args[0] ;
    const coinB=args[1] ;
    const coinC=args[2] ;
    const x = args[3];
    let count=0;

    for(i=0;i<=coinA;i++){
        for(e=0;e<=coinB;e++){
            for(f=0;f<=coinC;f++)
            if(i*500+e*100+f*50===x){
                count++;
            }
        }
        }
        console.log(count);
    }

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