#include<stdio.h>
int a[2000],n;
int search(int i,int x,int m){
  int v,w;
  if(x==m)return 1;
  if(i>=n+1)return 0;
  v=search(i+1,x,m)||search(i+1,x+a[i],m);


  // printf("x%d %d %d\n",x,v,i);
  return v;
}

int main(){
  int q,i,j=0,x=0,m;

  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&a[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&m);
    if(search(j,x,m)==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

