#include<stdio.h>
int solvesunzo(int,int);
int n,Atw[50];

int main(){
  int q,i,Mtw;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&Atw[i]);
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&Mtw);
    if(solvesunzo(0,Mtw))printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

int solvesunzo (int i, int m){
  if(m==0)return 1;
  if(i>=n)return 0;
  int res=solvesunzo(i+1,m)||solvesunzo(i+1,m-Atw[i]);
  return res;
}

