import sys, math
 
N = int(input())
A = [int(i) for i in input().split()]

result = 0
for i in range(N):
  result = result ^ A[i]
  #print(result)

if  result == 0:
  print("Yes")
else:
  print("No")
#print(result)