N = int(input()) A = list(map(int, input().split())) xor = 0 for i in range(N): xor ^= A[i] if xor: exit(print("No")) if N == 2: if A[0] == 0: print("Yes") else: print("No") exit() S = set() for i in range(N): if A[i] in S: exit(print("Yes")) S.add(A[i]) L = list(S) dp = [False]*(1<<14) dp[0] = True dpN = [False]*(1<<14) for i in range(len(L)-1): for j in range(1<<14): if dp[j]: dpN[j] = True if not j ^ L[i]: exit(print("Yes")) dpN[j^L[i]] = True dp = dpN[:] dpN = [False]*(1<<14) print("No")