N, *a = map(int, open(0).read().split())

a.sort()
for i in reversed(range(N)):
    if a[i] > a[i - 1] + a[(i + 1) % N]:
        a[i], a[i - 1] = a[i - 1], a[i]
    else:
        break
        
if all(a[i] == a[i - 1]^a[(i + 1) % N] for i in range(N)):
    print('Yes')
else:
    print('No')

