N = int(input()) A = list(map(int, input().split())) x = 0 for i in A: x ^= i if x != 0: exit(print("No")) if 0 in A: exit(print("Yes")) if N >= 9000: exit(print("Yes")) dp = [0] * 9001 for i in A[1:]: ndp = [0] * 9001 ndp[i] += 1 for j in range(9001): if i ^ j <= 9000: ndp[j] += dp[j] ndp[i ^ j] += dp[j] if ndp[0]: exit(print("Yes")) dp = ndp print("No")