#include<stdio.h>

int a[20],b[200];

int solve(int, int);
int main()
{

  int a_num,b_num,i,j;


  scanf("%d",&a_num);
  for(i = 0;i < a_num; i++){
    scanf("%d",&a[i]);
  }
  scanf("%d",&b_num);
  for(i = 0;i < b_num; i++){
    scanf("%d",&b[i]);
  }

  for(i = 0;i < b_num; i++){

    if(solve(0,b[i])==1){
      printf("yes\n");
    }
    else if(solve(i,b[i])==0){
      printf("no\n");   
    }
  }
  
  return 0;
}


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