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) for _ in range(len(L))] dp[0][0] = True for i in range(len(L)-1): for j in range(1<<14): if dp[i][j]: dp[i+1][j] = True if not j ^ L[i]: exit(print("Yes")) dp[i+1][j^L[i]] = True print("No")