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

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