#include<stdio.h>
#define MAX 10000

int solve(int,int);

int n,A[MAX];

int main(){
  int i,j;
  int m,key,sum=0;
  
  scanf("%d",&n);

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

  scanf("%d",&m);

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

    if( solve(0,key) != 0) printf("yes\n");

    else printf("no\n");

    
  }

  return 0;
}

int solve(int i , int m){
  if( m == 0 ) return 1;

  if( i >= n ) return 0;

  int res = solve( i+1,m ) || solve( i+1,m-A[i]);
  return res;
}