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

#define N 20
#define Q 200

int A[N],B[Q],n,q;

bool solve(int I,int target){

  int i,j,u,v;
  bool res;
  
  if(target == 0) return true;
  if(I >= n) return false;

  res = solve(I+1,target-A[I]) || solve(I+1,target);
  return res;
}

     

int main(){

  int i,j;
  bool  k;

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

  scanf("%d",&q);

  for(i=0;i<q;i++) scanf("%d",&B[i]);
  
  for(i=0;i<q;i++){
   k =  solve(0,B[i]);

  if( k == true) printf("yes\n");
    else if( k == false) printf("no\n");
  }

  return 0;
}

