import Data.List
import Data.Bits
main=getLine>>getLine>>=putStr.(\b->if b then"Yes"else"No").s.group.sort.map read.words
s x=let [(a,l),(b,m),(c,n)]=map(\s->(head s,length s))x in case length x of
 1->a==(0::Int)
 2->a==0&&l*2==m
 3->l==m&&m==n&&foldl1 xor[a,b,c]==0
 _->False