object Main extends App {
  val limit = Math.ceil(io.StdIn.readLine().toDouble / 3.0).toInt
  val seq = io.StdIn.readLine().split(" ").map(_.toInt)
  val cnt = seq.count(_ % 4 == 0)
  println(if (cnt > 0 && cnt >= limit) "Yes" else "No")
}