n=int(input())
a=list(map(int,input().split()))
for i in range(n):
  a[i]=format(a[i],'020b')
l=[0 for i in range(20)]
for i in range(n):
  for j in range(20):
    if a[i][j]=='1':
      l[j]+=1
for j in range(20):
  l[j]=l[j]%2

if 1 in l:
  print('No')
else:
  print('Yes')