#include <stdio.h>
int A[20],n;
int check(int ,int);
int main(void){
  int q,m,i;
  scanf("%d",&n);
  for(i=0;i<n;i++)
    scanf("%d",&A[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&m);
    if(check(0,m)==1)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
int check(int i,int m){
  if(m==0)return 1;
  if(i>n-1)return 0;//over factor(要素)
  if(check(i+1,m)==1 || check(i+1,m-A[i])==1)return 1;
  else return 0;
}
