from functools import reduce 
n=int(input())
a=list(map(int, input().rstrip().split(' ')))
def check(x):
  return reduce(lambda x,y:x^y, x) == 0
if check(a):
  print('Yes')
  break
else:
  print('No')