#include <stdio.h>

int x,box[50];

int hattuken(int y,int z) {
  int retan;
  if(z==0) return 1;
  if(y>=x) return 0;
  retan=hattuken(y+1,z)|| hattuken(y+1,z-box[y]);
  return retan;
}


int main()
{
  int i,j,comp;

  scanf("%d",&x);
  for(i=0;i<x;i++){
    scanf("%d",&box[i]);
  }

  scanf("%d",&j);
  for(i=0;i<j;i++){
    scanf("%d",&comp);
    if(hattuken(0,comp)){
      printf("yes\n");
    }
    else printf("no\n");
  }

  return 0;
}

