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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  }
} 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  }
} 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  } 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  } 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    } int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    } {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    } for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      } {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      } int cAns = (x -  (500 * i + 100 * j))/ 50; cAns (x -  (500 * i + 100 * j))/ 50 (x -  (500 * i + 100 * j)) x (500 * i + 100 * j) 500 * i 500 i 100 * j 100 j 50 if(0 <= cAns && cAns <= c){
          ans++;
        } 0 <= cAns && cAns <= c 0 <= cAns 0 cAns cAns <= c cAns c {
          ans++;
        } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  }
} 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  }
} 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++) {
      for (int j = 0; j <= b; j++) {
        int cAns = (x -  (500 * i + 100 * j))/ 50;
        if(0 <= cAns && cAns <= c){
          ans++;
        }
      }
    }
    System.out.println(ans);
    sc.close();
  }
}