#include<stdio.h>
#include<stdlib.h>
#include<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

int calc(int m,int *a,int n){
  if(m<0) return 0;
  if(m==0) return 1;
  if(n==0) return 0;
  return calc(m,a+1,n-1) || calc(m-a[0],a+1,n-1);
}

void run(void){
  int n;
  scanf("%d",&n);
  int a[20];
  int i;
  for(i=0;i<n;i++) scanf("%d",a+i);
  int q;
  scanf("%d",&q);
  while(q--){
    int m;
    scanf("%d",&m);
    printf("%s\n",calc(m,a,n)?"yes":"no");
  }
  return;
}

int main(void){
  run();
  return 0;
}

