#include <stdio.h>

int solve(int,int);

int A[2000];
int n;

int main(){

  int m_i[2000];
  int i,j,q;

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

  for(i=0;i<q;i++){
    j=0;
    if(solve(j,m_i[i]) == 1){
      printf("yes\n");
    }
    else if(solve(j,m_i[i]) == 0){
      printf("no\n");
    }
  }
  return 0;
}

int solve(int i, int m_i){

  int res;

  if(m_i == 0){
    return 1;
  }
  if(i >= n){
    return 0;
  }
  res = solve(i+1,m_i) || solve(i+1,m_i-A[i]);

  return res;
}