#include<stdio.h>

int n,A[50];

int so(int i,int j){
  if(j==0)return 1;
  if(i>=n)return 0;
  int re=so(i+1,j)||so(i+1,j-A[i]);
  return re;
}

int main(){
  int i,n2,B;

    scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&n2);
  for(i=0;i<n2;i++){
     scanf("%d",&B);
     if(so(0,B))printf("yes\n");
     else printf("no\n");
  }
  return 0;
}

