Inputs()= parse.(Int,split(readline()))
Input()=parse.(Int,readline())
function main()
    N=Input()
    A=Inputs()
    sum=0
    for i=1:N
        sum⊻=A[i]
    end
    println(sum==0 ? "Yes" : "No")
end
main()