#include<stdio.h>
int solve(int,int);
int a,A[2000];
int main(){
  int b,i,j,M;
  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&b);
  for(j=0;j<b;j++){
    scanf("%d",&M);
    if(solve(0,M)==0){
      printf("no\n");
    }
    else{
      printf("yes\n");
    }
  }
  return 0;
}

int solve(int i,int m){
  int res;
  if(m==0){
    return 1;
  }
  if(i>=a){
    return 0;
  }
  res = solve(i+1,m) || solve(i+1,m-A[i]);
  return res;
}
