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

extern int search(int,int*,int,int);
extern void solve(int,int*,int,int*);

int main(){
  int n,*N,*Q,i,q;

  scanf("%d",&n);

  N = (int*)malloc(sizeof(n));

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

  scanf("%d",&q);

  Q = (int*)malloc(sizeof(n));
  
  for(i=0; i<q; i++)
    scanf("%d",&Q[i]);

  solve(n,N,q,Q); 

  return 0;
}

extern int search(int n, int N[], int i, int q){
  if(q==0) return 1;

  else if(i >= n) return 0;

  return (search(n,N,i+1,q) || search(n,N,i+1,q-N[i]));
}

extern void solve(int n, int N[], int q, int Q[]){
  int i;

    
  for(i=0; i<q; i++)
    if(search(n,N,0,Q[i])==1)
      printf("yes\n");
    else printf("no\n");
}

  

