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

    if (length / 2 <= source.count(_ % 4 == 0)) {
      println("YES")
    } else {
      if (length / 2 <= source.count(_ % 4 == 0) + source.filter(_ % 4 != 0).count(_ % 2 == 0) / 2) {
        println("YES")
      } else {
        println("NO")
      }
    }
  }
}
