#include<stdio.h>

int a[20],b[200],n,q;

int calc(int i,int tar,int sum);

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

  
  for(i=0;i<q;i++){
    if(calc(0,b[i],0))
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
int calc(int i,int tar,int sum){
  int ch1,ch2;
  ch1=0;
  ch2=0;
  
  if(sum==tar)return 1;
  if(i==n)return 0;
  
  ch1=calc(i+1,tar,sum);
  ch2=calc(i+1,tar,sum+a[i]);

  if(ch1==1 || ch2==1)return 1;
}

