#include<stdio.h>

int ori[20],n;

int solve(int ,int );

int main()
{
  int i,j,m,hikaku[200],count=0;
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&ori[i]);
  }

   scanf("%d",&m);
  for(j=0;j<m;j++){
    count=0;
    scanf("%d",&hikaku[j]);
    count=solve(0,hikaku[j]);
    if(count==1) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}


int solve(int i,int m)
{
  int result;
  if(m==0) return 1;
  if(i>=n) return 0;
  result=solve(i+1,m) || solve(i+1,m-ori[i]);
  return result;
}

