_,a=open(0);a,*b=list(map(int,a.split()))

for b in b:a^=b

print(('YNeos'[a>0::2]))
from numpy import*;_,a=open(0);print(('YNeos'[bitwise_xor.reduce(int32(a.split()))>0::2]))
_, a = open(0)
a, *b = list(map(int, a.split()))
for b in b:
    a ^= b
print(("YNeos"[a > 0 :: 2]))

from numpy import *

_, a = open(0)
print(("YNeos"[bitwise_xor.reduce(int32(a.split())) > 0 :: 2]))

+from numpy import * + -a, *b = list(map(int, a.split())) -for b in b: -    a ^= b -print(("YNeos"[a > 0 :: 2])) +print(("YNeos"[bitwise_xor.reduce(int32(a.split())) > 0 :: 2]))