object Main extends App {
	val a = scala.io.StdIn.readInt
	val b = scala.io.StdIn.readInt
	val c = scala.io.StdIn.readInt
	val x = scala.io.StdIn.readInt / 50

//	10*a + 2*b + c = x

	var count = 0
	
	for(i<-0 to a){
		for(j<-0 to b){
			for(k<-0 to c){
				if(10*i + 2*j + k == x) count += 1
			}
		}
	}

	println(count)

}