object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in);
    val fh = (0 to sc.nextInt()).map(_*500).toList;
    val oh = (0 to sc.nextInt()).map(_*100).toList;
    val fi = (0 to sc.nextInt()).map(_*50).toList;
    val sum = sc.nextInt();
    println(fh.flatMap(x=>oh.flatMap(y=>fi.map(_+y+x)))
      .count(_ == sum).toString());
  }
}