#include <stdio.h>
#define true 1
#define false 0
#define N 20
#define F 200

int solve(int,int);
int array1[N];
int m,n,i,b,a,res=0;

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

  scanf("%d",&b);
  for(i=0;i<b;i++){
    scanf("%d",&m);
    res = solve(0,m);
    if(res == 0){
      printf("no\n");
    }
    else if(res == 1){
      printf("yes\n");
    }
  }
  return 0;
}

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

