#include<stdio.h>
#define N 20
#define M 200
int souatari(int ,int );
int A[N],a_total;
int main(){
  int B[M];
  int i,j,b_total;
  scanf("%d",&a_total);
  for(i=0;i<a_total;++i)
    scanf("%d",&A[i]);

  scanf("%d",&b_total);
  for(j=0;j<b_total;++j){
    scanf("%d",&B[j]);
  if(souatari(0,B[j]))
    printf("yes\n");
  else printf("no\n");
  }
  return 0;
}
int souatari(int ryohu,int karuma){
  int answer;
  if(karuma==0)return 1;
  else if(ryohu>a_total)return 0;
  answer=souatari(ryohu+1,karuma) || souatari(ryohu+1,karuma-A[ryohu]);
    return answer;
}



