function solve(i,m){
   if(m==0)return true;
   if(i>=n)return false;
   return solve(i+1,m) || solve(i+1,m-A[i]);
}
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n");
var n=Arr.shift()-0;
var A=(Arr.shift()).split(" ").map(Number);
var m=Arr.shift()-0;
var M=(Arr.shift()).split(" ").map(Number);
for(var i=0;i<m;i++){
   var ans=(solve(0,M[i]))?"yes":"no";
   console.log(ans);
}