n = int(input())
a = map(int,input().split())
a = list(map(bin,a))
a = [int(i,2) for i in a]
ans = a[0]
for i in range(n-1):
    ans = ans ^ a[i+1]

if ans == 0:
    print("Yes")
else:
    print("No")