#include<stdio.h>
#define AMAX 2000
#define MMAX 2000
int main(){
  int i,j,n,q,num,sequence[MMAX+1]={0};
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&num);
    for(j=MMAX-num;0<j;j--){
      if(sequence[j]){
        sequence[j+num]= 1;
      }
    }
    sequence[num]=1;
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&num);
    if(sequence[num]){
      printf("yes\n");
    }
    else printf("no\n");
  }
  return 0;
}

