#include<stdio.h>
int n,A[50],q,m;

int check(int i,int m){
  if(m==0)return 1;
  if(i>=n)return 0;
  int res=check(i+1,m)||check(i+1,m-A[i]);
  //printf("res;%d\n",res );
  return res;
}

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



  return 0;
}

