import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    }
    }    
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    }
    } Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    } 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 X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
} int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
} {
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
} int ans1 =+ 500 * i; ans1 + 500 * i + 500 500 i for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            } int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            } {
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            } int  ans2 =+ 100 * j; ans2 + 100 * j + 100 100 j for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	} int k = 0; int k = 0; k 0 k <= C k C k++ k++ k {
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	} {
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	} int ans3 =+ 50 * k; ans3 + 50 * k + 50 50 k if(ans1 + ans2 + ans3 == X){
                        ans++;
                } ans1 + ans2 + ans3 == X ans1 + ans2 + ans3 ans1 + ans2 + ans3 ans1 ans2 ans3 X {
                        ans++;
                } ans++ ans System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    }
    } public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    }
    } Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
		
    	int ans = 0;
    	
    	
        for(int i = 0;i <= A;i++){
           int ans1 =+ 500 * i;
                    
        	for(int j = 0;j <= B; j++){
              int  ans2 =+ 100 * j;

              for(int k = 0;k <= C;k++){
                 int ans3 =+ 50 * k;
            	if(ans1 + ans2 + ans3 == X){
                        ans++;
                }
            	}
            }
            
}

              System.out.print(ans);
    }
    }    

