#include <stdio.h>
int solve (int i, int m) {
  int n, a[50], res;

  if (m == 0) {
    return 1;
  }
  if (i >= n) {
    return 0;
  }

  res = solve(i+1, m) || solve(i+1, m - a[i]);

  return res;
}

int main () {

   int n, q, i, m;
   int a[50];

   scanf ("%d\n", &n);
   for (i = 0; i < n; i++) {
     scanf ("%d\n", &a[i]);
   }

   scanf ("%d\n", &q);
   for (i = 0; i < q; i++) {
     scanf ("%d\n", &m);
     if ( solve(0,m) ) {
       printf("yes\n");
     }
     else {
       printf ("no\n");
     }
   }

   return 0;
}