#include<stdio.h>
#define N 2000
int o1;
int A1[N];
int han(int a2,int b){
  int a;
  if(a2==0) return 1;
    if(b>=o1)return 0;
    
   a =  han(a2-A1[b],b+1)||han(a2,b+1);
   return a;
}

int main(){
  int i,j;
  int A2;
  int o2;
  scanf("%d",&o1);
  for(i=0;i<o1;i++){
    scanf("%d",&A1[i]);
  }

   scanf("%d",&o2);
 
  for(j=0;j<o2;j++){
    scanf("%d",&A2);
    if(han(A2,0)==1)printf("yes\n");
    
    else printf("no\n");
  }
  return 0;
}

