a = int(input())
b = list(map(int, input().split()))
d = [0] * 32
for i in range(3):
    e = bin(b[i])[2:]
    for j in range(len(e)):
        d[j] += int(e[-j-1])
for i in range(len(d)):
    if d[i] % 2 != 0:
        print("No")
        exit()
print("Yes")
