#include <stdio.h>

int makeCombination(int, int *, int, int);

int main(){
  int i, n, A[20], m, q;

  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);

    if(makeCombination(n,A,m,0) == 1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

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