#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int add(int *,int,int);
int solve(int *,int,int);
int n;
int main(){
  int i,q,A[2000],key;


  scanf("%d",&n);

  for(i=0;i<n;i++){
    scanf(" %d",&A[i]);
  }


  scanf(" %d",&q);

  for(i=0;i<q;i++){
    scanf(" %d",&key);
    if(solve(A,0,key)==1){
      printf("yes\n");
    }
    else{
      printf("no\n");
    }

  }
  return 0;
}


int solve(int *A,int i,int  key){
  int res;
  if(key == 0){
    return 1;
  }
 if(i >= n){
   return 0;
 }
 res = solve(A,i + 1, key) || solve(A,i + 1, key - A[i]);
 return res;
}


