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