#include<stdio.h>
#define TRUE 1
#define FALSE -1
int n,S[50];
int combi(int,int);
int combi(int i,int k)
{
  
  if(k==0) return TRUE;
  if(i>k) return FALSE;
  if(combi(i+1,k)==TRUE || combi(i+1,k-S[i])==TRUE) return TRUE;
  if(combi(i+1,k)==TRUE || combi(i+1,k-S[i])==FALSE) return FALSE;
  if(combi(i+1,k)==FALSE || combi(i+1,k-S[i])==TRUE) return FALSE;
  if(combi(i+1,k)==FALSE || combi(i+1,k-S[i])==FALSE) return FALSE;
}

int main()
{
  int num,key,i;
  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&S[i]);
  scanf("%d",&num);
  for(i=0;i<num;i++)
    {
      scanf("%d",&key);
      if(combi(0,key)==TRUE) printf("yes\n");
      else printf("no\n");
    }
  return 0;
}