def solve(): N = int(input().strip()) A = list(map(int, input().strip().split())) MAX = 5000 dp = [0] * (MAX + 1) dp[0] = 1 xor_all = 0 for a in A: xor_all ^= a for i in range(MAX, -1, -1): if dp[i]: dp[i ^ a] = 1 if xor_all == 0 or dp[xor_all]: print('Yes') else: print('No') solve()