#include<stdio.h>
#define N 2000
int a,A[N];

int sum(int b,int c)
{
  if(c == 0)return 1;
  if(b>=a)return 0;
  int num = sum(b+1,c) || sum(b+1,c-A[b]);
  return num;
}

int main()
{
  int q,M,i;
  
    scanf("%d",&a);
    for(i=0;i<a;i++)scanf("%d",&A[i]);
    scanf("%d",&q);
    for(i=0;i<q;i++)
      {
        scanf("%d",&M);
        if(sum(0,M))printf("yes\n");
        else printf("no\n");
    }
    return 0;
}

