#include<stdio.h>

int n, A[2000];

int main(){
 int q, m, 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);
    if( Exhaustive(0, m)==1 ) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}


int Exhaustive( int j, int m ){
  if(m==0) return 1;
  if(j>=n) return 0;
  int res = Exhaustive( j+1, m ) || Exhaustive( j+1, m-A[j] );
  return res;
}