#include<stdio.h>

int solve(int,int);

int x;
int a[2000];
int main(){
  int y,z,i;
  scanf("%d",&x);
  for(i=0;i<x;i++)scanf("%d",&a[i]);
  scanf("%d",&y);
  int b[y];
  for(i=0;i<y;i++)scanf("%d",&b[i]);
  for(i=0;i<y;i++){
    z=solve(0,b[i]);
    if(z==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int solve(int z,int y){
  int res;
  if(y==0)return 1;
  if(z>=x)return 0;
  res=solve(z+1,y)||solve(z+1,y-a[z]);
  return res;
}

