n = int(input())
A = [int(i) for i in input().split()]
bit = [0] * 32
tmp = 0
for a in A:
    for j in range(32):
        bit[j] += (a >> j) & 1
        bit[j] %= 2

for b in bit:
    if b % 2 == 1:
        print("No")
        quit()

print("Yes")
