#include<stdio.h>
#define N 20
#define Q 200
int solve(int,int);
int A[N],S[Q];
int n;
int main(){
  int i,q,j;
  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%d",&A[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++)
    scanf("%d",&S[i]);
  
  for(j=0;j<q;j++){
    if(solve(0,S[j])==1)
      printf("yes\n");
    else if(solve(0,S[j])==0)
      printf("no\n");
    
    
  }
  return 0;
}

int solve(i,m){
  int res=0;
  if(m==0)return 1;
  else if(m<=0)return 0;
  if(i>=n)return 0;
  res+=solve(i + 1, m) + solve(i + 1, m - A[i]);
  if(res>=2)res=1;
  return res;
}