#include <stdio.h>
#include <stdlib.h>

int Search(int,int);
int *arrayS,*arrayT;

int N,M;

int main(){
  int count=0,S;
  int i;
  scanf("%d",&N);
  arrayS = (int *)malloc(sizeof(int) * N);
  for(i=0;i<N;i++){
    scanf("%d",&arrayS[i]);
  }
  scanf("%d",&M);
  arrayT = (int *)malloc(sizeof(int) * M);
  for(i=0;i<M;i++){
    scanf("%d",&arrayT[i]);
    S=Search(0,arrayT[i]);
    if(S==1){
      printf("yes\n");
    }
  else printf("no\n");
  }
  free(arrayS);
  free(arrayT);
  return 0;
}

int Search(int i,int key){
  int res;
if(key == 0) return 1;
if(i >= N) return 0;
res = Search(i+1,key) || Search(i+1,key-arrayS[i]);
return res;
}