#include <stdio.h>

int n,a[10000];
//int Culc(int, int);

int main()
{
  int i,j,q,m;

  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&a[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&m);
    if(Culc(0,m)) printf("yes\n");
    else printf("no\n");
    }
  return 0;
}

int Culc(int s,int m){
  int res;
  
  if(m==0) return 1;
  if(n<=s) return 0;
  res=(Culc(s+1,m) || Culc(s+1,m-a[s]));
  return res;
}