import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    } main {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan int X = scan.nextInt(); X scan.nextInt() scan.nextInt scan int count = 0; count 0 for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        } int a = 0 ; int a = 0 ; a 0 a <= A a A a ++ a ++ a {
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        } {
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        } for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          } int b = 0 ; int b = 0 ; b 0 b <= B b B b++ b++ b {
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          } {
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          } for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            } int c = 0 ; int c = 0 ; c 0 c <= C c C c++ c++ c {
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            } {
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            } int t = a *500 + b * 100 + c * 50; t a *500 + b * 100 + c * 50 a *500 + b * 100 + c * 50 a *500 a 500 b * 100 b 100 c * 50 c 50 if(t == X){
                 count ++;
               } t == X t X {
                 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) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int X = scan.nextInt();
        int count = 0;
      
        for(int a = 0 ; a <= A; a ++){
          for(int b = 0 ; b <= B; b++){
            for(int c = 0 ; c <= C; c++){
               int t = a *500 + b * 100 + c * 50;
               if(t == X){
                 count ++;
               }
            }
          }
        }
      System.out.println(count);
    }
}