#include <stdio.h>

int n;

int makeNumber(int, int, int *);

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

  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]);
  }
  
  for(i = 0; i < q; i++){
    status = 0;
    status = makeNumber(0, m[i], a);
    if(status == 1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}


int makeNumber(int start, int key, int *a){
  int i, status;
  
  for(i = start; i < n; i++){
    if(key == a[i]) return 1;
    if(key < 0) break;
    if(key == 0) return 1;
    if((status = makeNumber(i + 1, key - a[i], a)) == 1) break;
  }
  if(status == 1) return 1;
  else return 0;
}

