object Main {
	def main(args:Array[String]) = {
		val sc = new java.util.Scanner(System.in)
		
		val a, b, c, x = sc.nextInt
		
		val list = for(p <- 0 to a; q <- 0 to b; r <- 0 to c) yield ( 500 * p + 100 * q + 50 * r )
		println( list.filter( _ == x ).size ) 
	}
}
