#include<stdio.h>
typedef struct{
  int n;
  int A[2000];
  int q;
  int m[2000];
}List;
int selc(int,int,List);

main(){
  int i;
  List list;
  scanf("%d",&list.n);
  for(i=0;i<list.n;i++)scanf("%d",&list.A[i]);
  scanf("%d",&list.q);
  for(i=0;i<list.q;i++)scanf("%d",&list.m[i]);
  for(i=0;i<list.q;i++){
    if(selc(0,list.m[i],list))printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int selc (int i,int m,List list){
  int re;
  if(m==0)return 1;
  else if(i>=list.n)return 0;
  re = (selc(i+1,m,list)|| selc(i+1,m-list.A[i],list));
  return re;
}