#include <stdio.h>
#define true 1
#define false -1
#define M 2000

int x[M],y[200],n;

int solve (int i,int j)
{
  int res;
  if(j==0) return true;
  if(i>=n) return false;
  if(solve(i+1,j)==true) res=true;
  else if(solve(i+1,j-x[i])==true)res=true;
  else res=false;
  return res;
}

int main()
{
  int a,b,c,d=0;
  char s[2][4]={"yes","no"};

  scanf("%d",&n);
  for(a=0;a<0;a++)
     scanf("%d",&x[a]);

   scanf("%d",&b);
   for(a=0;a<b;a++){
      scanf("%d",&y[a]);
      if(solve(0,y[a])==true)printf("%s\n",s[0]);
      else printf("%s\n",s[1]);
   }
   return 0;
}

