#include<stdio.h>
#define N 20
#define Q 200
int culc(int ,int);
int n,A[N];
int main(){
  int q,m[Q],i;
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&A[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&m[i]);
    if(culc(0,m[i])==1)printf("yes\n");
    else printf("no\n");
  }
  
  return 0;
}


int culc(int i ,int m){
  int Z,y;
  if(m==0)return 1;
  if(i>=n)return 0;
  if((y=culc(i+1,m))==1)Z=y;
  else if((y=culc(i+1,m-A[i]))==1) Z=y;
  return Z;
}

