#include<stdio.h>
 
int n,q,x[2001],m;
 
int rec(int i,int sum){
  if(sum == m)return 1;
  if(i >= n)return 0;
  return rec(i + 1,sum) || rec(i + 1,sum + x[i]);
}
 
int main(void){
 
  int i,j;
  
  scanf("%d",&n);
  for(i = 0 ; i < n ; i++)scanf("%d",&x[i]);
  scanf("%d",&q);
  for(i = 0 ; i < q ; i++)
    {
      scanf("%d",&m);
      if(rec(0,0))printf("yes\n");
      else printf("no\n");
    }
  return 0;
}