#include<stdio.h>
#define N 20
#define Q 200
int a,b,c[N],d[Q],i;

int solve(int a,int b);

int main(){
  int res;
  
  scanf("%d",&a);
  for(i=0;i<a;i++)scanf("%d",&c[i]);
   scanf("%d",&b);
  for(i=0;i<b;i++)scanf("%d",&d[i]);

  for(i=0;i<b;i++){res=solve(0,d[i]);
    if(res==1)printf("yes");
    else printf("no");
    printf("\n");
    }
}
int solve(int j,int d){
  int ans;
  if(d==0)return 1;
  if(j>=a)return 0;
  ans=solve(j+1,d)|| solve(j+1,d-c[j]);
  return ans;
}

