#include <stdio.h>

#define AMAX 20   //define no ato ni ; wo tuketeha ikenai
#define MMAX 2000
int n,q;
int isExist[MMAX +1] = {0};// 0 de syokika
int main(void)
{
  int i,j;
  int num;

  scanf("%d",&n);
  for (i = 0;i<n;i++)
    {
      scanf("%d",&num);
      for(j = MMAX-num; 0<j; j--)
        {
          if(isExist[j])   // A retsu no suuchi wo tashite sono kazu ga mae ni tukurete itara 1
             
            {
              isExist[j+num] = 1; // mae ni tukureta kazu ni ima haittekita kazu wo tasu.
            }
        }
      isExist[num]=1; // suuji ga attara 0 wo 1 ni suru
      // ima haittekita suuji no tokoro wo 1 ni suru
    }

  scanf("%d", &q);
  for (i = 0;i < q; i++)
    {
      scanf("%d",&num);
      if(isExist[num])
        {
          printf("yes\n");
        }
      else
        {
          printf("no\n");
        }
    }
  return 0;
}