import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    } solve {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan int X = scan.nextInt(); X scan.nextInt() scan.nextInt scan int answer = 0; answer 0 for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        } int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        } {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        } for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            } {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            } int k = (X-(i*500 + j*100)) / 50; k (X-(i*500 + j*100)) / 50 (X-(i*500 + j*100)) X (i*500 + j*100) i*500 i 500 j*100 j 100 50 if (k < 0 || C < k) {
                    continue;
                } k < 0 || C < k k < 0 k 0 C < k C k {
                    continue;
                } continue; answer += 1 answer 1 System.out.println(answer) System.out.println System.out System System.out answer public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int answer = 0;
        for (int i = 0; i <= A; i++) {
            for (int j = 0; j <= B; j++) {
                int k = (X-(i*500 + j*100)) / 50;
                if (k < 0 || C < k) {
                    continue;
                }
                answer += 1;
            }
        }
        System.out.println(answer);
    }
}
