#include<stdio.h>
int make(int *,int);
void rec (int);
int solve(int ,int);
int x,a[20];
int main(){
  int b[200],y,i;
  scanf("%d",&x);
  for(i=0;i<x;i++)
    scanf("%d",&a[i]);
  //make(a,x);
  scanf("%d",&y);
  for(i=0;i<y;i++){
    scanf("%d",&b[i]);
    if((solve(0,b[i]))==1)
      printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
/*int make(int *a){
  int i;
  for(i=0;i<x;i++)
    a[i]=0;
  rec(0);
}
void rec(i){
  if(i==x){
    printf("%d\n",s[i]);
    return ;
  }
  rec(i+1);
  s[i]=1;
  rec(i+1);
  s[i]=0;
  }*/
int solve(int i,int m){
  int res;
  if(m==0)
    return 1;
  if(i>=x)
    return 0;
  res=solve(i+1,m) || solve(i+1,m-a[i]);
  return res;
}

