import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } 
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } 
} Main public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } main {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } int go = 0; go 0 int hya = 0; hya 0 int gozyu = 0; gozyu 0 int sum = 0; sum 0 int count = 0; count 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) go = sc.nextInt() go sc.nextInt() sc.nextInt sc hya = sc.nextInt() hya sc.nextInt() sc.nextInt sc gozyu = sc.nextInt() gozyu sc.nextInt() sc.nextInt sc sum = sc.nextInt() sum sc.nextInt() sc.nextInt sc int i = 0; i 0 int j = 0; j 0 int k = 0; k 0 for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    } i = 0; i = 0 i 0 i <= go i go i++ i++ i {
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    } {
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    } for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        } j = 0; j = 0 j 0 j <= hya j hya j++ j++ j {
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        } {
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        } for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            } k = 0; k = 0 k 0 k <= gozyu k gozyu k++ k++ k {
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            } {
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            } if(500*i+100*j+50*k==sum){
                    count++;
                } 500*i+100*j+50*k==sum 500*i+100*j+50*k 500*i+100*j+50*k 500*i 500 i 100*j 100 j 50*k 50 k sum {
                    count++;
                } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } 
} public class Main {
  public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } 
} Main
import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    int go = 0;
    int hya = 0;
    int gozyu = 0;
    int sum = 0;
    int count = 0;
    Scanner sc = new Scanner(System.in);
    go = sc.nextInt();
    hya = sc.nextInt();
    gozyu = sc.nextInt();
    sum = sc.nextInt();
    
    int i = 0;
    int j = 0;
    int k = 0;
    for(i = 0; i <= go; i++){
        for(j = 0; j <= hya; j++){
            for(k = 0; k <= gozyu; k++){
                if(500*i+100*j+50*k==sum){
                    count++;
                }
            }
        }
    }
    System.out.println(count);
    } 
}