import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int fiveHundred = Integer.parseInt(sc.next()); fiveHundred Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int hundred = Integer.parseInt(sc.next()); hundred Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int fifty = Integer.parseInt(sc.next()); fifty Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int target = Integer.parseInt(sc.next()); target Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = 0; ans 0 for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i <= fiveHundred i fiveHundred i++ i++ i {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        } {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        } for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            } int j = 0; int j = 0; j 0 j <= hundred j hundred j++ j++ j {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            } {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            } for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                } int k = 0; int k = 0; k 0 k <= fifty k fifty k++ k++ k {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                } {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                } int total = (i * 500) + (j * 100) + (k * 50); total (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 (total == target) {
                        ans++;
                    } total == target total target {
                        ans++;
                    } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int fiveHundred = Integer.parseInt(sc.next());
        int hundred = Integer.parseInt(sc.next());
        int fifty = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int ans = 0;
        for (int i = 0; i <= fiveHundred; i++) {
            for (int j = 0; j <= hundred; j++) {
                for (int k = 0; k <= fifty; k++) {
                    int total = (i * 500) + (j * 100) + (k * 50);
                    if (total == target) {
                        ans++;
                    }
                }
            }
        }
        System.out.println(ans);
    }
}
