#include<stdio.h>
#include<stdlib.h>
#define N 2000

int n,A[N];

int solve(int,int);


int main(){
  int m,q,i;

  while(1){
    scanf("%d",&n);
    if(n<=20) break;
  }
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
      }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&m);
    if(m<1||m>2000) exit(2);
    if(solve(0,m)==1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}


int solve(int x,int m ){
  int res;
 
  if(m==0) return 1;
  if(x>=n) return 0;
 
  res = solve(x+1,m) || solve(x+1,m - A[x]);

  return res;
 
}

