#include <stdio.h>

#define M 20
#define L 2000
int range;
int A[L];
int solve(int,int);

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

int solve(int i,int m)
{
  if(m==0)return 1;
  if(i>=range)return 0;
  if(solve(i+1,m)==1)return 1;
  else if(solve(i+1,m-A[i]) ==1)return 1;
  else return 0;
}

