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

def mae(N, a):
    sum = a[0]
    for i in range(1, N):
        sum ^= a[i]
    return sum

if mae(N, a) == 0:
    print("Yes")
else:
    print("No")