
  

#include<stdio.h>
#define N 20
#define Q 2000

//int rec(int,int [N],int [N],int,int,int);
int solve(int ,int ,int ,int [N],int);

int main(){
  int num,n[N],qu,q[Q],i,S[N];

  scanf("%d",&num);

  for(i=0;i<num;i++) scanf("%d",&n[i]);

  scanf("%d",&qu);

  for(i=0;i<qu;i++) scanf("%d",&q[i]);

  for(i=0;i<qu;i++){
    //if(rec(0,S,n,q[i],num,0)==1) printf("yes\n");
    if(solve(0,q[i],num,n,0)==1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}



/*
int rec(int i,int S[N],int n[N],int q,int num,int flag){
  int j,sum=0;
  if(i==num){
    if(flag==0){
      for(j=0;j<num;j++){
	if(S[j]==1)sum+=n[j];
	if(sum>=q)break;
      }
      if(sum==q) flag=1;
    }
    return flag;
  }
  
  S[i]=1;
  flag=rec(i+1,S,n,q,num,flag);
  S[i]=0;
  flag=rec(i+1,S,n,q,num,flag);

  return flag;
}
*/

int solve(int i,int q,int num,int n[N],int res){
  if(q==0 || res==1) return 1;
  if(i>=num) return 0;
  res = solve(i+1,q,num,n,res);
  res = solve(i+1,q-n[i],num,n,res);
  return res;
}