#include <stdio.h>
#define MAX_N 20

int n;
int A[MAX_N];

int dfs(int num, int index) {
  if (num == 0) return 1;
  if (index == n || num < 0) return 0;

  if (dfs(num - A[index], index+1) || dfs(num, index+1)) {
    return 1;
  }
  return 0;
}

int main(void) {
  int i, q;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }
  scanf("%d", &q);
  for (i = 0; i < q; i++) {
    int num;
    scanf("%d", &num);
    if (dfs(num, 0)) {
      printf("yes\n");
    } else {
      printf("no\n");
    }
  }

  return 0;
}