#include<stdio.h>

#define N 2000

int solve(int,int);

int A[N],a;

int main(){
  int i,j,b,k;

  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&b);
  for(j=0;j<b;j++){
    scanf("%d",&k);
    if(solve(0,k)==1) printf("yes\n");
    else printf("no\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;
}

