fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val aa = readLine()!!.split(" ").map{it.toInt()}

    val odd = aa.filter { it % 2 == 1 }

    println(if (odd.size % 2 == 1) "NO" else "YES")
}