#include<stdio.h>
int n,S[50];
int combi(int,int);

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)) printf("yes\n");
      else printf("no\n");
    }
  return 0;
}

int combi(int i,int k)
{
  int judge;
  if(k==0) return 1;
  if(i>=k) return 0;
  judge= combi(i+1,k) || combi(i+1,k-S[i]);
  return judge;
}