fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val aa = readLine()!!.split(" ").map { it.toLong() }

    val a4 = mutableListOf<Long>()
    val a2 = mutableListOf<Long>()
    val a = mutableListOf<Long>()

    aa.forEach {
        if (it % 4 == 0L) {
            a4.add(it)
        } else if (it % 2 == 0L) {
            a2.add(it)
        } else {
            a.add(it)
        }
    }

    if (a.size + (if (a2.size > 0) 1 else 0) <= a4.size + 1) {
        println("Yes")
    } else {
        println("No")
    }
}

