#include<stdio.h>

int n,e[50];

int main(){
  int Exhaus, i,j;
  scanf("%d", &n);
  for ( i=0; i<n; i++){
    scanf("%d",e[i]);
  }

  scanf("%d", &j);
  for ( i = 0; i<j; i++ ){

    scanf("%d", &Exhaus);
    if ( search(0,Exhaus) )
     printf("yes\n");
    else 
     printf("no\n");

  }

  return 0;
}

int search(int x ,int y){
  if ( x>=n )
   return 0;
  if ( e[x]==y )
   return 1;
  if ( search(x+1, y) ) 
   return 1
  if ( search(x+1, y-e[x]) )
   return 1

  return 0;
}
