N = int(input()) A = list(map(int, input().split())) S = 0 for a in A: S ^= a if S != 0: print("No") exit() d = {} for a in A: d[a] = d.get(a, 0) + 1 for k, v in d.items(): if v >= 2: print("Yes") exit() del d M = 1<<13 dp = [[False, False] for _ in range(M)] dp[0][0] = True for i in range(N-1): nxt = [[False, False] for _ in range(M)] for j in range(M): nxt[j][0] |= dp[j][0] nxt[j][1] |= dp[j][1] nxt[j^A[i]][1] |= dp[j][0] | dp[j][1] dp = nxt if dp[0][1]: print("Yes") else: print("No")