#include <stdio.h>
#define N 20

int judge(int,int);
int n;
int A[N];

int main(){
  int q,B;
  int i;  
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
  scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
  scanf("%d",&B);
  if(judge(i,B)==1) printf("yes\n");
  else printf("no\n");
}
  return 0;
}

int judge(int factor,int m){
  int re_num;
  if(m==0) return 1;
  if(factor>=n) return 0;
  re_num=judge(factor+1,m)||judge(factor+1,m-A[factor]);
  return re_num;
}