var n,q,a,m;


function search(sum,i,m){
    if(i >= n){
        return sum == m;
    }

    return search(sum + a[i],i + 1,m) || search(sum,i + 1,m);
}

function Main(input){
    input = input.split("\n");
    n = parseInt(input[0],10);
    q = parseInt(input[2],10);
    input[1] = input[1].split(" ");
    input[3] = input[3].split(" ");
    a = new Array(n);m = new Array(q);
    for(var i = 0;i < n;i++)
        a[i] = parseInt(input[1][i],10);
    for(var i = 0;i < q;i++)
        m[i] = parseInt(input[3][i],10);
    for(var i = 0;i < q;i++){
        if(search(0,0,m[i]))
            console.log("yes");
        else
            console.log("no");
    }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));