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