function main(input){
    let lines =input.split("\n");
    let n = parseInt(lines.shift());
    let A = lines.shift().split(" ").map(x=>parseInt(x));
    let q = parseInt(lines.shift());
    let m = lines.shift().split(" ").map(x=>parseInt(x));
    
    for(let i=0;i<q;i++){
        let ans = solve(0,m[i],n,A);
        if(ans){
            console.log("yes");
        }else{
            console.log("no");
        }
    }

    
}
function solve(i,m,n,A){
    if(m===0){
        return true;
    }
    if(i>=n){
        return false;
    }
    let res = solve(i+1,m,n,A) || solve(i+1,m-A[i],n,A);
    return res;
    
}


main(require("fs").readFileSync("/dev/stdin","utf-8"));
