import itertools

N = int(input())
a = list(int(i) for i in input().split())

cnt =0
for c in itertools.combinations(a, 3):
    if c[0] ^ c[1] ^ c[2] == 0:
        cnt =cnt+1
        
if cnt == N/3:
    print("Yes")
else:
    print("No")