#include<stdio.h>

int Exhaustive(int,int);

int n,A[100];

int main()
{
  int yamagami,a,i;

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

    scanf("%d",&yamagami);

    for(i=0;i<yamagami;i++)
      {
        scanf("%d",&a);
        if(Exhaustive(0,a))
          printf("yes\n");
        else
          printf("no\n");
      }

    return 0;
  }

  int Exhaustive(int a,int b)
  {
    if(b==0)
      return 1;
    if(a>=n)
      return 0;

    int res=Exhaustive(a+1,b)||Exhaustive(a+1,b-A[a]);
    return res;
  }


