import java.io.PrintWriter

fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun nextList() = next().split(" ")
fun nextIntList() = nextList().map(String::toInt)
fun nextLongList() = nextList().map(String::toLong)
fun nextDoubleList() = nextList().map(String::toDouble)

val pw = PrintWriter(System.out)
fun print(s: Any = "") = pw.print(s)
fun println(s: Any = "") = pw.println(s)

fun main(args: Array<String>) {
    main()
    pw.flush()
}

fun main() {
    val N = next().toInt()
    val A = nextIntList()
    val B = A.map { if (it % 4 == 0) 2 else if (it % 2 == 0) 1 else 0 }.toCountMap()
    val c2 = B[2] ?: 0
    val c1 = B[1] ?: 0
    println(if (c2 * 2 + 1 + c1 >= N) "Yes" else "No")
}

fun <T> List<T>.toCountMap(): Map<T, Long> {
    return this.groupBy { it }.mapValues { it.value.size.toLong() }
}