import numpy as np
import sys

N = int(input())
A = input().split(' ')

an = np.array(A, dtype=np.int64)

chk = 0
for i in range(0,N+1):
   chk = chk ^ an[i] 

if(chk == 0):
   print('Yes')
else:
   print('No')
  



