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 % 4L == 0L) {
            by4++
        } else if (a % 2L == 0L) {
            by2ButBy4++
        }
    }

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

    val requireBy4 = n - by4 - if (by2ButBy4 != 0) by2ButBy4 - 1 else 0

    if (by4 >= requireBy4 - 1) {
        println("Yes")
    } else {
        println("No")
    }
}