fun longList() = readLine()?.split(" ")?.map(String::toLong) ?: TODO()
fun main(args: Array<String>) {
    val n = readLine()?.toInt() ?: return
    val a = longList()
    var four = 0
    var notFour = 0
    var has2 = false
    a.forEach {
        if (it % 4 == 0L) {
            four++
        } else if (it % 2L == 0L) {
            has2 = true
        } else {
            notFour++
        }
    }
    if (has2) {
        notFour++
    }
    if (four >= notFour - 1) {
        println("Yes")
    } else {
        println("No")
    }
}