fun main(args:Array<String>) {
    val studentCount = readLine()!!.toInt()
    val numList = readLine()!!.split(" ").map { it.toLong() }
    val ans = if(getAns(numList)) "Yes" else "No"
    println(ans)

}
fun getAns(numList:List<Long>):Boolean {
    var div2 = 0
    var div4 = 0
    var other = 0
    numList.forEach {
        if(it % 4 == 0L) {
            div4++
        } else if(it % 2 == 0L) {
            div2++
        } else {
            other++
        }
    }
    if(other == 0) {
        return true
    }
    if(div2 > 0) {
        other++
    }
    return div4 + 1 >= other
}

