#include <stdio.h>
int Judge(int *,int,int,int);
int main(){
  int q,n,A[20],m[200],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",&m[i]);
    if(Judge(A,m[i],0,n))printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int Judge(int *A,int m,int i,int n){
  if(m==0)return 1;
  else if(i>=n)return 0;
  return  Judge(A,m,i+1,n)||Judge(A,m-A[i],i+1,n);
}


