function Main(input){
    input = input.split("\n");
    var A = input[0];
    var B = input[1];
    var C = input[2];
    var X = input[3];
    var ans = 0;
    for(var a = 0; a <= A; ++a){
        for(var b = 0; b <= B; ++b){
            if((X-500*a-100*b)%50 == 0 && (X-500*a-100*b)/50 >= 0 && (X-500*a-100*b)/50 <= C) ++ans;
        }
    }
    console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));