#include<stdio.h>
#include<stdlib.h>

int Solve(int , int , int);
int a[20];

int main(){
  int m[200],q,i,n,j;

  scanf("%d",&n);
  if(n < 1 || 20 < n)exit(0);
  for(i = 0; i < n;i++){
    scanf("%d",&a[i]);
    if(a[i] < 1 || 2000 < a[i])exit(0);
  }
  scanf("%d",&q);
  if(q < 1 || 200 < q)exit(0);
  for(i = 0; i < q; i++){
    scanf("%d",&m[i]);
    if(m[i] < 1 || 2000 < m[i])exit(0);
  }

  for(i = 0; i < q;i++){
      if(Solve(0,m[i],n) == 1)printf("yes\n");
      else printf("no\n");
  }
  return 0;
}

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

  return res;
}

