#include <stdio.h>

#define true 1
#define false 0

int solve(int *, int, int, int);

int main() {
  int i, j, n, q, flag = 0;
  int dataa[2000], datam[2000];

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

  for (i = 0; i < q; i++) {
    flag = solve(dataa, 0, datam[i], n);
    if (flag == true) {
      printf("yes\n");
    }
    else if (flag == false) {
      printf("no\n");
    }
  }
  
  return 0;
}


int solve(int *data, int i, int m, int n) {
  int res1, res2;
  
  if (m == 0) return true;

  else if (i >= n) return false;

  res1 = solve(data, i+1, m, n);
  res2 = solve(data, i+1, m-data[i], n);

  if (res1 == false && res2 == false) return false;
  else return true;
}

