import scala.io.StdIn._

object Main extends App {

  val n = readInt()
  val a = readLine().split(" ").map(_.toInt)

  def solve() = {
    var cnt = a(0)
    var i = 0
    while(i < n) {
      cnt = cnt ^ a(i)
      i += 1
    }
    if(cnt == 0) "Yes" else "No"
  }

  println(solve())

}

