#include<stdio.h>

int MakeCombination(int,int);
int A[2001], mi[2001];
int n;

int main(){
   int i,q,j=0;
   int search;

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

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

   for(i=0 ; i<q ; i++){
      search = MakeCombination(0,mi[i]);
      if(search == 1)printf("yes\n");
      else if (search == 0)printf("no\n");
   }
   return 0;
}


int MakeCombination(int i,int m){
  int res;
   if(i >= n) return 0;
   if(m == 0) return 1;
   if (res=MakeCombination(i+1,m))return res;
   if (res=MakeCombination(i+1,m-A[i]))return res;
return res;
}