object Main {
	def main(args: Array[String]) {
		val input = io.Source.stdin.getLines().mkString("\n")
		println(solve(input).trim)
	}

	def solve(input: String): String = {
		val List(a, b, c, x) = input.split("\n").map(_.toInt).toList
		val ay = (0 to a).map(_*500)
		val by = (0 to b).map(_*100)
		val cy = (0 to c).map(_*50)
		ay.flatMap(i => by.flatMap(j => cy.map(k => i+j+k))).filter(_==x).size.toString()
	}

}