#include<stdio.h>
int solve(int i,int m);
int a[21];
int main()
{
  int n,i,j,q,m,sol;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
  scanf("%d",&q);
  for(j=0;j<q;j++){
    i=0;
    scanf("%d",&m);
    sol=solve(i,m);
    if(sol==0)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
int solve(int i, int m){
  int res;
  if(m==0)return 0;
  if(i>=m)return 1;
  if(solve(i+1,m)==0 || solve(i+1,m-a[i])==0)return 0;
  else return 1;
}

