fun main(args: Array<String>) {
    val n = readInputLine().toInt()
    val aArr = readInputLine().split(" ").map{it.toInt()}
    
    var mult4 = 0
    var odd = 0
    
    for (a in aArr) {
        if (a % 4 == 0) {
            mult4++
            continue
        }
        
        if (a % 2 == 1) {
            odd++
        }
    }
    
    if (mult4 >= odd || (mult4 + odd == n && mult4 == odd - 1)) {
        println("Yes")
    } else {
        println("No")
    }
}

fun readInputLine(): String {
    return readLine()!!
}
