N=int(input())
A=list(map(int,input().split()))

eachbit=[0]*30
for i in range(N):
    bin_str = format(A[i],'030b')
#    print(bin_str)
    for j in range(31):
        if bin_str[-j] == '1':
            eachbit[j] += 1

even = True
for e in eachbit:
    if e % 2 != 0:
        even = False

if even:
    print('Yes')
else:
    print('No')