import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ABC087BCoins solver = new ABC087BCoins(); solver new ABC087BCoins() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    } ABC087BCoins public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        } solve {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        } int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in int c = in.nextInt(); c in.nextInt() in.nextInt in int x = in.nextInt(); x in.nextInt() in.nextInt in int ans = 0; ans 0 for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            } int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            } {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            } for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                } {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                } for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    } int k = 0; int k = 0; k 0 k <= c k c k++ k++ k {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    } {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    } int total = (500 * i) + (100 * j) + (50 * k); total (500 * i) + (100 * j) + (50 * k) (500 * i) + (100 * j) + (50 * k) (500 * i) 500 i (100 * j) 100 j (50 * k) 50 k if (total == x) ans++; total == x total x ans++ ans System.out.println(String.valueOf(ans)) System.out.println System.out System System.out String.valueOf(ans) String.valueOf String ans int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC087BCoins solver = new ABC087BCoins();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC087BCoins {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            int x = in.nextInt();
            int ans = 0;

            for (int i = 0; i <= a; i++) {
                for (int j = 0; j <= b; j++) {
                    for (int k = 0; k <= c; k++) {
                        int total = (500 * i) + (100 * j) + (50 * k);
                        if (total == x) ans++;
                    }
                }
            }
            System.out.println(String.valueOf(ans));
        }

    }
}

