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

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    int a = readint;
    int b = readint;
    int c = readint;
    int x = readint;

    int ans = 0;
    for (int i = 0; i <= a; i++) { // 500
        for (int j = 0; j <= b; j++) { // 100
            for (int k = 0; k <= c; k++) { // 50
                int t = 500 * i + 100 * j + 50 * k;
                if (t == x) {
                    ans++;
                }
            }
        }
    }
    writeln(ans);
}
