import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    }
} Main public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int result = 0; result 0 int cal = 0; cal 0 for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        } 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++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        } {
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        } for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            } {
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            } for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                } int k = 0; int k = 0; k 0 k <= C k C k++ k++ k {
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                } {
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                } cal = (500 * i) + (100 * j) + (50 * k) cal (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(cal == N){
                        result++;
                    } cal == N cal N {
                        result++;
                    } result++ result cal = 0 cal 0 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    }
} public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int N = sc.nextInt();
        
        int result = 0;
        int cal = 0;
        
        for(int i = 0; i <= A; i++){
            for(int j = 0; j <= B; j++){
                for(int k = 0; k <= C; k++){
                    cal = (500 * i) + (100 * j) + (50 * k);
                    if(cal == N){
                        result++;
                    }
                    cal = 0;
                }
            }
        }
        System.out.println(result);
        
    }
}
