#include <stdio.h>
#define N 20
#define Q 200
#define TRUE 1
#define FALSE 0

void solve(int,int);

int A[N];
int M[Q];
int i;
int n,q;;
int check;

int main(void){

  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[i]);

  for(i=0;i<q;i++){
    check = 0;
    solve(0,M[i]);
    if(check == TRUE)
      printf("yes\n");
    else
      printf("no\n");
  }

  return 0;
}

void solve(int index,int remnant){
  
  if(index == n - 1){
    if(remnant == 0) 
      check = 1;
  }

  else{
    solve(index+1,remnant - A[index]);
    solve(index+1,remnant);
  }
} 