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 cnt4 = seq.count(_ % 4L == 0L)
  val cnt2 = seq.count(_ % 2L == 0L) - cnt4
  if (cnt4 >= limit) {
    println("Yes")
  } else if (n - cnt4 * 3 <= cnt2) {
    println("Yes")
  } else {
    println("No")
  }
}