process.stdin.resume();
process.stdin.setEncoding("utf8");
let input = "";
process.stdin.on("data", function(chunk) {input += chunk;});
process.stdin.on("end", function() {main(input.split("\n"));});

function main(lines) {
	let obj = {
		n : Number(lines[0]),
		A : lines[1].split(" ").map(Number),
		R : [],
		calc : function(i,w) {
			for (let k = i; k < this.n; k++) {
				let w2 = w + this.A[k];
				this.R.push(w2);
				this.calc(k+1, w2);
			}
		}
	};
	let M = lines[3].split(" ").map(Number);

	obj.calc(0,0);
	
	M.forEach(m => {
		if (obj.R.includes(m)) console.log("yes");
		else console.log("no");
	});
}
