Public Class Program
  Shared Sub Main()
    Dim n As Integer = Integer.Parse(Console.ReadLine())
    Dim arrayA As Integer() = Array.ConvertAll(Of String, Integer)(Console.ReadLine().Split(" "), AddressOf Integer.Parse)
    Dim result As Integer = arrayA(0)
    For i As Integer = 1 To n - 1
      result = result Xor arrayA(i)
    Next
    Console.WriteLine(If(result = 0, "Yes", "No"))
  End Sub
End Class