#include<stdio.h>

#define MAX 2000

int main(){
  int n,q;
  int a[MAX],mi[MAX],s[MAX],b,c;
  int i,j;

  for(i=0;i<MAX;i++)s[i]=0;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
    b=a[i];
    for(j=2000-b;j>0;j--){
      if(s[j]==1)s[j+b]=1;
      /* if(a[i]==j)s[j]=1;
	 sovle(a[i],a[j]);*/
    }
    s[b]=1;
  }
  
  /*for(i=0;i<MAX;i++)printf(" *%d:%d* ",i,s[i]);*/
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&mi[i]);
    c=mi[i];
    if(s[c]==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

