import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    } main {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int C = scanner.nextInt(); C scanner.nextInt() scanner.nextInt scanner int X = scanner.nextInt(); X scanner.nextInt() scanner.nextInt scanner int count = 0; count 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        } int i = 0; int i = 0; i 0 i <= A i A i++ i++ i { // 500
            for (int j = 0; j <= B; j++) { // 100
                for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        } { // 500
            for (int j = 0; j <= B; j++) { // 100
                for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        } for (int j = 0; j <= B; j++) { // 100
                for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j { // 100
                for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            } { // 100
                for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            } for (int k = 0; k <= C; k++) { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                } int k = 0; int k = 0; k 0 k <= C k C k++ k++ k { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                } { // 50
                    int candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                } int candidate = 500*i + 100*j + 50*k; candidate 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 (candidate == X) count++; candidate == X candidate X count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int C = scanner.nextInt();
        int X = scanner.nextInt();

        int count = 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 candidate = 500*i + 100*j + 50*k;
                    if (candidate == X) count++;
                }
            }
        }

        System.out.println(count);
    }
}