#include<stdio.h>
int select(int,int);
int n;
int ns[20];
int m;
int ms;
int main(){
  scanf("%d",&n);
  m=n;
  while(m){
    scanf("%d",&ns[n-m]);
    m--;
  }
  scanf("%d",&m);
  while(m){
    scanf("%d",&ms);
     printf(select(0,ms)?"yes\n":"no\n");
    m--;
  }
  return 0;
}
int select(int i,int s){
  if(s==0)return 1;
  if(i>=n)return 0;
  select(i+1,s)||select(i+1,s-ns[i]);
}

