#include<stdio.h>
#define N 20
#define Q 200

int a[N],s,n;

int solve(int i,int m){
  if(i<n){
    if(m==0){
      s=1;
      return 1;
    }
    if(m<0)return 0;
    if(solve(i+1,m)==1)return 1;
    if(solve(i+1,m-a[i])==1)return 1;
  }
  return 0;
}

int main(){
  int i,q,m[Q];
  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++){
    s=0;
    solve(s,m[i]);
    if(s==1) printf("yes\n");
    
    else printf("no\n");
    
  }
  return 0;
}