#include<stdio.h>
#define MAX 50
int solve(int, int);


int n,P[MAX];

int main(){
  int x,y,i;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&P[i]);
  }
  scanf("%d",&x);
  for(i=0;i<x;i++){
    scanf("%d",&y);
    if( solve(0,y)){
      printf("yes\n");
    }
    else printf("no\n");
  }


  return 0;
}




int solve(int a,int b){
  int res=0;

  if(b == 0){
    return 1;
  }

  if(a >= n){
    return 0;
  }
  res = solve(a+1,b)||solve(a+1,b-P[a]);
  return res;
}
  
		   

