import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()

    var sw = 0

    repeat(n) {
        sw = sw xor sc.nextInt() % 2
    }

    println(if (sw == 0) "YES" else "NO")
}
