#include<stdio.h>
#define N 20
#define TRUE 1
#define FALSE 0

int solve(int, int);

int a;
int A[N];

int main(){
  int b,i,k,j,B[200];

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

  scanf("%d",&b);
  for(j=0;j<b;j++)
    scanf("%d",&B[j]);

  for(k=0;k<b;k++){
    
    if( solve(0,B[k]) ){
      printf("yes\n");
    }else{
      printf("no\n");
    }
  }

  return 0;
}


int solve(int i,int b){
  int res;
  if (b == 0){
    //printf("yes\n");
    return TRUE;
  }
	     
  if (i >= a){
    //printf("no\n");
    return FALSE;
  }
  
  res = solve(i + 1, b) || solve(i + 1, b - A[i]);
  return res;
}

