import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        int result = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        }
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        int result = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        int result = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        }
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        int result = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int C = Integer.parseInt(sc.next()); C Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int X = Integer.parseInt(sc.next()); X Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int result = 0; result 0 for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        } int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        } {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        } for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            } {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            } int c = (X - i * 500 - j * 100) / 50; c (X - i * 500 - j * 100) / 50 (X - i * 500 - j * 100) X - i * 500 - j * 100 X i * 500 i 500 j * 100 j 100 50 if (c >= 0 && c <= C) result++; c >= 0 && c <= C c >= 0 c 0 c <= C c C result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        int C = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        int result = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int c = (X - i * 500 - j * 100) / 50;
                if (c >= 0 && c <= C) result++;
            }
        }
        System.out.println(result);
    }
}