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

    var by4 = 0
    var by2ButBy4 = 0

    for (a in aList) {
        if (a % 4 == 0L) {
            by4++
        } else if (a % 2 == 0L) {
            by2ButBy4++
        }
    }

    if (by2ButBy4 == n || by4 >= n / 2) {
        println("Yes")
        return
    }

    val requireBy4 = n - by4 - by2ButBy4 + if (by2ButBy4 != 0) 1 else 0
    val needBy4 = (requireBy4 / 2) + if (requireBy4 % 2 == 1) 1 else 0

    if (by4 >= needBy4) {
        println("Yes")
    } else {
        println("No")
    }
}