#include <stdio.h>

int n, In1[25];

int judge(int i, int In2)
{
  if( In2 == 0 )return 1;
  if( i >= n )return 0;
  int res = judge( i+1, In2 ) || judge( i+1, In2 - In1[i]);
  return res;
}

int main()
{
  int i,m,In2;

  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&In1[i]);
  scanf("%d",&m);
  for(i=0;i<m;i++)
  {
    scanf("%d",&In2);
    if( judge(0,In2) ) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

