n=int(input())
a=list(map(int, input().split()))
b=[0]*n

if n%2==0:
    k=int(n/2)
    
    for i in range(k-1):
        b[2*i+2]=b[2*i]^a[2*i+1]
    b[0]=b[2*k-2]^a[2*k-1]
    for i in range(k-1):
        b[2*i+3]=b[2*i+1]^a[2*i+2]
    b[1]=b[2*k-1]^a[0]

    if b[0]==0 and b[1]==0:
        print("Yes")
    else:
        print("No")
    
else:
    k=int(n//2)
    
    for i in range(k):
        b[2*i+2]=b[2*i]^a[2*i+1]
    for i in range(k):
        b[2*i+1]=b[2*i-1]^a[2*i]
    b[0]=b[2*k-1]^a[2*k]
    print(b)
    if b[0]==0:
        print("Yes")
    else:
        print("No")