#include<stdio.h>

int array[20], n;
int solve(int, int);

int main(){

  int i, m, num;
  
  scanf("%d",&n);

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

  scanf("%d",&m);

  for(i = 0; i < m; i++)
    {
      scanf("%d",&num);
      
      if(solve(0,num) == 1)printf("yes\n");
      else printf("no\n");
    }
  
  return 0;
}

int solve(int cnt, int num)
{
  if(num == 0)return 1;
  else if(cnt == n || num < 0)return 0;
  
  if(solve(cnt + 1, num - array[cnt]) == 1 || solve(cnt + 1, num) == 1)return 1;
  else return 0;
}

