N=int(input()) A=list(map(int,input().split())) XOR=0 for a in A: XOR^=a if XOR!=0: print("No") exit() DP=[0]*(8193) DP[0]=1 for a in A[:-1]: #print(DP[:20]) NDP=[0]*8193 for i in range(8192,-1,-1): if DP[i]!=0: NDP[i]+=DP[i] NDP[i^a]+=DP[i] DP=NDP if DP[0]>=2: print("Yes") exit() print("No")