N=int(input()) A=list(map(int, input().split())) c=0 for a in A: c^=a if c!=0: print('No') exit() if len(A)!=len(set(A)): print('Yes') exit() if 0 in set(A): print('Yes') exit f=-1 dp=[0]*8192 for j in range(N-1): a=A[j] ndp=[0]*8192 for i in range(8192): if dp[i]==1: ndp[i]=1 ndp[i^a]=1 dp=ndp dp[a]=1 if dp[0]==1: f=1 break if f==1: print('Yes') else: print('No')