object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val a = List.fill(n)(sc.nextInt)

    val multipleOf4 = a.filter(_ % 4 == 0)
    val multipleOf2 = a.filter(_ % 4 != 0).filter(_ % 2 == 0)
    val ans = if (multipleOf4.length <= a.length / 2) {
      if (multipleOf4.length + multipleOf2.length / 2 <= a.length / 2) "Yes"
      else "No"
    }
    else "No"

    println(ans)
  }
}