 #include<stdio.h>
#define N 2000
#define Q 2000
int i,n,q,key[N],a[N],m[Q];
void solve(int,int);
 
int main(){
  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%d",&a[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++)
    scanf("%d",&m[i]);
   
  for(i=0;i<q;i++){
    key[i]=0;
    solve(0,M[i]);
    if(key[i]==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
 
void solve(int c,int sum){
  if(sum==0) key[i]=1; 
  if(sum>0&&c<n){
    solve(c+1,sum-a[c]);
    solve(c+1,sum);
  }
}