#include<stdio.h>
int mothernum, mother[20];

int sentaku(int i, int now, int aim)
{
 int back;
 if ( now == aim ) {
   return 1;
 }
 if ( i > mothernum ) {
   return 0;
 }
 back = sentaku(i+1, now, aim) || sentaku(i+1, now+mother[i], aim);
 return back;
}

int main()
{
 int kidsnum, kids[200], i, j, flag;
 
 scanf("%d", &mothernum);
 for (i = 0; i < mothernum; i++) {
   scanf("%d", &mother[i]);
 }
  
 scanf("%d", &kidsnum);
 for(i = 0; i < kidsnum; i++) {
   scanf("%d", &kids[i]);
 }

 for(i = 0; i< kidsnum; i++){
   flag = 0;
   flag = sentaku(0, 0, kids[i]);
   if (flag == 1) {
      printf("yes\n");
   } else {
      printf("no\n");
   }
 }
 
 return 0;
}