import std.stdio, std.algorithm, std.range, std.array, std.conv, std.string, std.math, std.container, std.typecons;

void main() {
    auto a = readln.chomp.to!int;
    auto b = readln.chomp.to!int;
    auto c = readln.chomp.to!int;
    auto x = readln.chomp.to!int;
    int cnt = 0;
    foreach (i; 0..min(x/500,a)+1) {
        foreach (j; 0..min((x-500*i)/100,b)+1) {
            auto res = x-500*i-100*j;
            if (res % 50 == 0 && res/50 <= c) {
                cnt++;
            }
        }
    }
    writeln(cnt);
}
