import scala.io.StdIn

object Main extends App {
   val a = StdIn.readLine().toInt
   val b = StdIn.readLine().toInt
   val c = StdIn.readLine().toInt
   val x = StdIn.readLine().toInt
   
   val r = (0 to a).foldLeft(0){ (acca, ai) =>
      (0 to b).foldLeft(acca) { (accb, bi) =>
         val rc = x - (ai*500 + bi*100)
         if(0 <= rc && rc / 50 <= c && rc % 50 == 0) accb + 1 else accb + 0
      }
   }
   
   println(r)
}
