#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define true 1
#define false 0
int solve(int,int);
int A[20];
int n;
int main(){
  int q,key;
  int i,j,sol;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&key);
    j=0;
    sol=solve(j,key);
    if(sol==true)printf("yes\n");
    if(sol==false)printf("no\n");
  }
  return 0;
}
int solve(int i,int key){
  int res;
  if(key==0)return true;
  if(i>=n)return false;
  res = solve(i + 1, key) || solve(i + 1, key - A[i]);
  return res;
}


