#include<stdio.h>

#define N 2000

int Make(int ,int,int,int * );

int main(){
  int loop1,loop2;
  int i,check;
  int Length[N],Seisu[N];
  

  scanf(" %d",&loop1);
  for(i=0;i<loop1;i++){
    scanf(" %d",&Length[i]);
  }

  scanf(" %d",&loop2);
  for(i=0;i<loop2;i++){
    scanf(" %d",&Seisu[i]);
  }

  for(i=0;i<loop2;i++){
    check=0;
    check=Make(0,Seisu[i],loop1,Length);

    if(check==1){
      printf("yes\n");
    }
    else{
      printf("no\n");
    }
    
  }
  
  return 0;
}


int Make(int x,int y,int length,int *Num){
  int more;

  if(y==0){
    return 1;
  }
  else if(x>=length){
    return 0;
  }
  else{
    more=Make(x+1,y,length,Num) || Make(x+1,y-Num[x],length,Num);
    return more;
  }
}

