fun main(args: Array<String>) {
    val N = Integer.parseInt(readLine()!!)
    val A = readLine()!!.split(" ").map { Integer.parseInt(it) }
    val sum = A.reduce { a, b -> a xor b }
    println(if(sum == 0) "Yes" else "No") }
}