#include<stdio.h>
#define N 2000

int solve(int,int);
int num1,A[N];


int main(){


  int num2,B[N],i,result;

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

  scanf("%d",&num2);

  for(i=0;i<num2;i++){
    scanf("%d",&B[i]);    
    result = solve(0,B[i]);
    
    if(result == 1)printf("yes\n");
    else printf("no\n");
  }
  
  return 0;
}




/*solve(i,m)において、与えられた整数をつくれる  m=0*/
int solve(int i,int m){
  

  int res;
  if(m == 0)return 1;
  if(i >= num1)return 0;
  res =  (solve(i + 1, m) || solve(i + 1, m - A[i]));
  return res;
}