import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  } main {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    } int aCount = 0; int aCount = 0; aCount 0 aCount <= a aCount a aCount++ aCount++ aCount {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    } {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    } for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      } int bCount = 0; int bCount = 0; bCount 0 bCount <= b bCount b bCount++ bCount++ bCount {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      } {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      } for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        } int cCount = 0; int cCount = 0; cCount 0 cCount <= c cCount c cCount++ cCount++ cCount {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        } {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        } int result = aCount * 500 + bCount * 100 + cCount * 50; result aCount * 500 + bCount * 100 + cCount * 50 aCount * 500 + bCount * 100 + cCount * 50 aCount * 500 aCount 500 bCount * 100 bCount 100 cCount * 50 cCount 50 if (result == x) {
            count++;
          } result == x result x {
            count++;
          } count++ count System.out.println(count) System.out.println System.out System System.out count scanner.close() scanner.close scanner String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int x = scanner.nextInt();

    int count = 0;

    for (int aCount = 0; aCount <= a; aCount++) {
      for (int bCount = 0; bCount <= b; bCount++) {
        for (int cCount = 0; cCount <= c; cCount++) {
          int result = aCount * 500 + bCount * 100 + cCount * 50;


          if (result == x) {
            count++;
          }
        }
      }
    }

    System.out.println(count);
    scanner.close();
  }
}
