object Main {
  def main(args: Array[String]): Unit = {
    val length = readLine().toInt
    val source = readLine().split(" ").toList.map(_.toInt)

    val four = source.count(_ % 4 == 0)
    val two = source.filter(_ % 4 != 0).count(_ % 2 == 0)

    if (length / 2 <= four + two / 2 - (two / 2 - 1)) {
      println("YES")
    } else {
      println("NO")
    }
  }
}