import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    val a = (0 until n).map { sc.next().toLong() }
    println(problem069c(n, a))
}

fun problem069c(n: Int, a: List<Long>): String {
    val fours = a.filter { it % 4 == 0L }
    val twoCount = a.count { it == 2L }
    return if (fours.size >= (n - twoCount / 2) / 2) "Yes" else "No"
}