#include<stdio.h>

int solve(int,int);
int a[2000],b[2000];
int n1,n2;
int main(){
  int i;

  scanf("%d",&n1);

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

  scanf("%d",&n2);

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

  return 0;
}



int solve(int i,int m){
  int res;
	if(m == 0)
	  return 1;
	if(i >= n1)
	  return 0;
	res = solve(i + 1, m) || solve(i + 1, m - a[i]);
	return res;
      }

