object Solution {

  import scala.math._

  def main(args: Array[String]) {

    val sc = new java.util.Scanner(System.in)

    val n = sc.nextInt()
    val arr = List.fill(n)(sc.nextInt())

    var odd = arr.filter(_%2 == 1)
    var even = arr.filter(_%2 == 0)

    if (check(odd.length, even.length)) println("YES")
    else println("NO")

  }
  def check(odd_len: Int, even_len: Int): Boolean = {
    if (odd_len%2 == 0) true
    else if (even_len == 0) true
    else false
  }
}