#include<stdio.h>
#define N 20
#define Q 200
#define true 1
#define false 0

int A[N];
int n;

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;

}

int main(){

  int i,j,q,b,check=0;
  int M[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]);
  }

  for(j=0;j<q;j++){
    i=0;
    if(solve(i,M[j])==true) {
      check++;
    }
    if(check!=0){
      printf("yes\n");
      check=0;
    }
    else printf("no\n");
  }

  return 0;
  
}


