#include <stdio.h>
int n, A[20];

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

int main(void) {
  int i, q, m, j = 0;
  scanf("%d", &n);
  for (i = 0; i < n; ++i) {
    scanf("%d", &A[i]);
  }
  scanf("%d", &q);
  for (i = 0; i < q; ++i) {
    scanf("%d", &m);
    int f = exhaustive(j, m);
    printf("%s\n", f ? "yes" : "no");
  }
}

