#include<stdio.h>
#define max 2000
int Sun(int, int);
int n,q,A[max];
int main(){
  int m[max],i,j,jud;

  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[i]);
  }
  for(i = 0;i<q;i++){
    jud = Sun(0,m[i]);
    if(jud==0)printf("yes\n");
    else printf("no\n");
  }
 
  return 0;
}

int Sun(int i,int m){
  int res;
  
  if(m == 0)return 0;
  if(i >= n)return 1;

  res = Sun(i+1,m);
  if(res == 0)return 0;

  res= Sun(i+1,m - A[i]);

  return res;
}