object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datN) = readLine.split(" ").map(_.toInt)
    val datA = readLine.split(" ").map(_.toInt)

    val ans = ((datA.map(_ % 2).sum % 2) != 1) || (datN == 1)
    println(if(ans) "YES" else "NO")
  }
}
