N = int(input())
As = [int(i) for i in input().split()]

def xorsum(X):
    x = X[0]
    for i in range(1,len(X)):
        x = x ^ X[i]
    return x

if xorsum(As) == 0:
    print("Yes")
else:
    print("No")
