import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    int x = Integer.parseInt(sc.next());
    int ans = 0;
    for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    }
    System.out.println(ans);
    
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    int x = Integer.parseInt(sc.next());
    int ans = 0;
    for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    }
    System.out.println(ans);
    
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    int x = Integer.parseInt(sc.next());
    int ans = 0;
    for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    }
    System.out.println(ans);
    
  } main {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    int x = Integer.parseInt(sc.next());
    int ans = 0;
    for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    }
    System.out.println(ans);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = 0; ans 0 for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    } int i = 0; int i = 0; i 0 i < a+1 i a+1 a 1 i++ i++ i {
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    } {
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    } for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      } int j = 0; int j = 0; j 0 j < b+1 j b+1 b 1 j++ j++ j {
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      } {
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      } for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        } int k = 0; int k = 0; k 0 k < c+1 k c+1 c 1 k++ k++ k {
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        } {
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        } int temp = 500*i + 100*j + 50*k; temp 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 (temp == x){ans += 1;} temp == x temp x {ans += 1;} ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int c = Integer.parseInt(sc.next());
    int x = Integer.parseInt(sc.next());
    int ans = 0;
    for (int i = 0; i < a+1; i++){
      for (int j = 0; j < b+1; j++){
        for (int k = 0; k < c+1; k++){
          int temp = 500*i + 100*j + 50*k;
          if (temp == x){ans += 1;}
        }
      }
    }
    System.out.println(ans);
    
  }
}
