#include<stdio.h>

int array[20];
int n;

int check(int,int);

int main(){
  int q,i,judge;
  int marray[200];

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

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

  for(i=0;i<q;i++){
    judge=check(0,marray[i]);
    if(judge) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int check(int i,int m){
  int judge;
  if(m == 0) return 1;
  if(i == n) return 0;
  judge = check(i+1,m) || check(i+1,m-array[i]);

  return judge;
} 