object Main {
	def main(args: Array[String]): Unit = {
		var counter = 0
		var A = readInt()
		var B = readInt()
		var C = readInt()
		var X = readInt()
		for (currentA <- 0 to A) {
			for (currentB <- 0 to B) {
				for (currentC <- 0 to C) {
					if (currentA * 500 + currentB * 100 + currentC * 50 == X) {
						counter += 1
					}
				}
			}
		}
		println(counter)
	}
}