#include<stdio.h>
#define length 2000
int match(int,int);
int A[length];
int n;

int main(){
  int i,j;
  int q,m;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  for(j=0;j<q;j++){
    scanf("%d",&m);
    if(match(0,m)!=0){
      printf("yes\n");
    }else{
      printf("no\n");
    }
  }
  return 0;
}


int match(int x,int y){
  int sum;
  if(y==0)return 1;
  if(x>=n)return 0;

  sum = match(x+1,y)|| match(x+1,y-A[x]);
  return sum;
}

