#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main(int argc, char *argv[])
{
  int n, q, m, i, j;
  int *A;
  int sum[40000], p, bits, tmp;

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

  for (i = 0; i < 40000; i++) sum[i] = 0;

  p = (int)pow(2, n);

  for (i = 1; i < p; i++) {
    bits = i;
    tmp = 0;
    for (j = 0; j < n; j++, bits = bits >> 1) {
      if ((bits & 0x00000001) == 1) tmp += A[j];
    }
    sum[tmp] = 1;
  }

  scanf("%d", &q);

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

  return 0;
}