var n,q,a = new Array(2000),m = new Array(200);

function search(sum,depth,m){
    if(depth >= n){
        if(sum === m)
            return true;
        else
            return false;
    }

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

function Main(input){
    input = input.split("\n");
    var n = parseInt(input[0],10);
    var q = parseInt(input[2],10);
    for(var i = 0;i < n;i++){
        a[i] = parseInt(input[1],10);
    }
    for(var i = 0;i < q;i++){
        m[i] = parseInt(input[3],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"));