from functools import reduce


N, *A = map(int, open(0).read().split())
xor_A = reduce(lambda x, y: x ^ y, A)
if N % 2:
    print("Yes") if xor_A == 0 else print("No")
else:
    print("Yes") if xor_A in A else print("No")
