#include<stdio.h>

#define true 1
#define false 0

int n,A[50];

int solve(i, m){
    if( m == 0){
     return true;
   }if( i >= n){
     return false;
  } int res = solve(i + 1, m) || solve(i + 1, m - A[i]);
   return res;
 }
int main(){
  int p,N,j;

  scanf("%d",&n);
  for(j=0;j<n;j++){
    scanf("%d",&A[j]);
  }scanf("%d",&p);
  for(j=0;j<p;j++){
    scanf("%d",&N);
    if(solve(0,N)) printf("yes\n");
    else printf("no\n");
  }
}

