#include <stdio.h>
#include <stdlib.h>
#define true 1
#define false 0
int *A;
  int *m;
 int n;
int main(){

  int q;
  int flug=0;
  int i,j;
  
  scanf("%d",&n);
  A = (int *)malloc(sizeof(int) * n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  m = (int *)malloc(sizeof(int) * q);
  for(i=0;i<q;i++){
    scanf("%d",&m[i]);
  }

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

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

/*
void makeCombination(){
  int i;
  for(i=0;i<n;i++){
    S[i] = 0;
  }
  rec(0);
}

void rec(int i){
  if(i==n){
    print("%d",S[i])
      return 1;
  }
    rec(i+1);
    S[i] = 1;
    rec(i+1);
    S[i] = 0;
  }
}
*/

