import scala.io.StdIn._

object Main extends App {

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

  def solve() = {
    val xor = a.drop(1).foldLeft(a.head) { (acc, num) =>
      acc ^ num
    }
    if(xor == 0) "Yes" else "No"
  }

  println(solve())

}

