import java.util.*;

class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
}

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();

        int cnt = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        }

        System.out.println(cnt);

        return;
    }

} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
} Main public static void main(String[] args) {
        new Solver().run();
    } main {
        new Solver().run();
    } new Solver().run() new Solver().run new Solver() String[] args args class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();

        int cnt = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        }

        System.out.println(cnt);

        return;
    }

} Solver public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();

        int cnt = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        }

        System.out.println(cnt);

        return;
    } run {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();

        int cnt = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        }

        System.out.println(cnt);

        return;
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        } 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 sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        } {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        } for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            } {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            } for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                } int k = 0; int k = 0; k 0 k <= C k C k++ k++ k {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                } {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                } int sum = i * 500 + j * 100 + k * 50; sum i * 500 + j * 100 + k * 50 i * 500 + j * 100 + k * 50 i * 500 i 500 j * 100 j 100 k * 50 k 50 if (sum == X) {
                        cnt++;
                    } sum == X sum X {
                        cnt++;
                    } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt return;
import java.util.*;

class Main {
    public static void main(String[] args) {
        new Solver().run();
    }
}

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();

        int cnt = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                for (int k = 0; k <= C; k++) {
                    int sum = i * 500 + j * 100 + k * 50;
                    if (sum == X) {
                        cnt++;
                    }
                }
            }
        }

        System.out.println(cnt);

        return;
    }

}