#include<stdio.h>
int A[2000],kazu;
int combination(int,int);
int main()
{
int i,j,suji;
scanf("%d",&kazu);
for(i=0;i<kazu;i++)
{
  scanf("%d",&A[i]);
}
scanf("%d",&suji);
for(i=0;i<suji;i++)
{
  scanf("%d",&j);
if(combination(0,j))printf("yes\n");
else printf("no\n");
}
return 0;
}
int combination(int i,int j)
{
if(j==0)return 1;
if(i>=kazu)return 0;
int a = combination(i+1,j) || combination(i+1,j-A[i]);
return a;
}

