fun main(args : Array<String>) {
    val N = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map { it.toLong() }.toLongArray()

    val sum = a.reduce { acc, l -> acc xor l }
    if (sum == 0L) {
        println("Yes")
    } else {
        println("No")
    }
}