#include<stdio.h>

#define N 2000
#define MAX 2000

int solve(int,int);

int g,a[MAX];;

int main(){
  int i,j,n,k;
  int b[MAX];

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

  g=n;

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

/*  g = j;

  for(i=0;i<n;i++){
  k = solve(j,b[i],a);

  if(k==0) printf("yes\n");
  else printf("no\n");
  }*/

  return 0;

}

int solve(int i,int m){
  int res;

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

}