import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util import java.util.stream.IntStream; IntStream java.util.stream public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    } main {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int a = stdin.nextInt(); a stdin.nextInt() stdin.nextInt stdin int b = stdin.nextInt(); b stdin.nextInt() stdin.nextInt stdin int c = stdin.nextInt(); c stdin.nextInt() stdin.nextInt stdin int x = stdin.nextInt(); x stdin.nextInt() stdin.nextInt stdin int ans = 0; ans 0 for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        } 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++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        } {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        } for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            } {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            } for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                } int k = 0; int k = 0; k 0 k <= c k c k++ k++ k {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                } {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                } if (i * 500 + j * 100 + k * 50 == x) ans++; i * 500 + j * 100 + k * 50 == x i * 500 + j * 100 + k * 50 i * 500 + j * 100 + k * 50 i * 500 i 500 j * 100 j 100 k * 50 k 50 x 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) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    }
} Main
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt(); // 500
        int b = stdin.nextInt(); // 100
        int c = stdin.nextInt(); // 50
        int x = stdin.nextInt();
        
        int ans = 0;
        for (int i = 0; i <= a; i++) {
            for (int j = 0; j <= b; j++) {
                for (int k = 0; k <= c; k++) {
                    if (i * 500 + j * 100 + k * 50 == x) ans++;
                }
            }
        }
        
        System.out.println(ans);
    }
}
