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