#include <stdio.h>
#define true 1
#define false -1
#define N 2000

int A[N],n,B[200];


int func(int i,int m){
  int res;
  if(m==0)return true;
  if(i>=n)return false;
  if(func(i+1,m)==true)res=true;
  else if(func(i+1,m-A[i])==true)res=true;
  else res=false;
    return res;
}

int  main(){
  int i,q,m,j=0;
  char s[2][4]={"yes","no"};

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

  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&B[i]);
    if(func(0,B[i])==true)printf("%s\n",s[0]);
    else printf("%s\n",s[1]);
  }

  return 0;
}





