import scala.io.StdIn.{readInt, readLine}
object Main extends App {
  val n = readInt
  val as = readLine.split(" ").map(_.toInt)
  if (as.size == 1) println("YES")
  else if (as.count(_ % 2 == 1) % 2 == 0) println("YES")
  else println("NO")
}
