#include<stdio.h>
#define MAX 20
#define TRUE 1
#define FALSE 0

int num[MAX];
int a;

int judge(int,int);

int main() {

  int i,b,N;

  scanf("%d",&a);
  for(i=0;i<a;i++) scanf("%d",&num[i]);
  scanf("%d",&b);
  for(i=0;i<b;i++) {
    scanf("%d",&N);

    if( (judge(0,N)) == TRUE ) printf("yes\n");
    else printf("no\n");

  }

  return 0;

}

int judge(int i,int n) {

  int res;
  
  if( n == 0 ) return TRUE;
  if( i >= a ) return FALSE;

  res = judge(i+1,n) || judge(i+1,n-num[i]);

  return res;

}
