#include <stdio.h>

int p, a[50];

int solve(int i, int m){
  int res;
  if(m == 0)return 1;
  if(i >= p)return 0;

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

int main() {
  int q, i;

  scanf("%d", &p);
  for(i = 0; i < p; i++)scanf("%d", &a[i]);

  scanf("%d", &q);
  int b[q];
  for(i = 0; i < q; i++)scanf("%d", &b[i]);

  for(i = 0; i < q; i++){
    if(solve(0, b[i])==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

