#include<stdio.h>
#define MAX_n 20
#define MAX_q 200
#define true 1
#define false 0

int A[MAX_n];
int M[MAX_q];
int n;
int q;

int solve(int i,int m){
  if(m==0)return true;
  if(i>=n)return false;

  if(solve(i+1,m)==false && solve(i+1,m-A[i])==false)return false;
  
  else return true;
}

int main(){
  int i;
  int res;
  
  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]);
    if(solve(0,M[i])==true)printf("yes\n");
    else printf("no\n");
  }

  return 0;
}


