import java.util.Scanner

object Main extends App {

  val sc = new Scanner(System.in)
  val a = sc.nextInt()
  val b = sc.nextInt()
  val c = sc.nextInt()
  val x = sc.nextInt()
  
  var count = 0

  (0 to a).map { ai =>
    (0 to b).map { bi =>
      (0 to c).map { ci =>
        if (x == (ai * 500 + bi * 100 + ci * 50)) count += 1
      }
    }
  }

  println(count)

}
