import scala.collection.mutable

object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val hashMap = mutable.Map[Int, Int]()
  for (_ <- 1 to N) {
    val i = Integer.numberOfTrailingZeros(sc.nextInt()).min(2)
    hashMap.update(i, hashMap.getOrElse(i, 0) + 1)
  }
  val isSortable =
    hashMap.getOrElse(0, 0) + (if (hashMap.contains(1)) 1 else 0) <= hashMap.getOrElse(2, 0) + 1
  println(if (isSortable) "Yes" else "No")
}
