fun main(args: Array<String>) {
    readLine()
    val aa = readLine()!!.split(' ').map(String::toInt)
    var eqTwo = 0
    var muFour = 0
    aa.forEach { a ->
        if (a == 2) {
            eqTwo++
        } else if (a % 4 == 0) {
            muFour++
        }
    }
    println(if (aa.size shr 1 <= (eqTwo shr 1) + muFour) "Yes" else "No")
}
