import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int a = Integer.parseInt(br.readLine()); a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int b = Integer.parseInt(br.readLine()); b Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int c = Integer.parseInt(br.readLine()); c Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int x = Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br 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(x == 500 * i + 100 * j + 50 * k){
                        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        } {
            for(int j = 0; j <= b; j++){
                for(int k = 0; k <= c; k++){
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        } for(int j = 0; j <= b; j++){
                for(int k = 0; k <= c; k++){
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
                for(int k = 0; k <= c; k++){
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            } {
                for(int k = 0; k <= c; k++){
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            } for(int k = 0; k <= c; k++){
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                } int k = 0; int k = 0; k 0 k <= c k c k++ k++ k {
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                } {
                    if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                } if(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    } x == 500 * i + 100 * j + 50 * k x 500 * i + 100 * j + 50 * k 500 * i + 100 * j + 50 * k 500 * i 500 i 100 * j 100 j 50 * k 50 k {
                        ans++;
                    } ans++ ans out.println(ans) out.println out ans out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int a = Integer.parseInt(br.readLine());
        int b = Integer.parseInt(br.readLine());
        int c = Integer.parseInt(br.readLine());
        int x = Integer.parseInt(br.readLine());
        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(x == 500 * i + 100 * j + 50 * k){
                        ans++;
                    }
                }
            }
        }
        
        out.println(ans);
        out.close();
        
    }
}