#include <stdio.h>

int combination(int,int);

int n, A[20];

int main()
{
  int q, m[200], i;

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

int combination(int m, int i)
{
  if (m == 0)
    return 1;
  else if (i >= n)
    return 0;
  else
    return combination(m-A[i],i+1) || combination(m,i+1);
}

