#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int judge(int,int);

int n;
int A[50];

int main(){
  int i,q,m;

  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(judge(0,m)){
      printf("yes\n");
    }
    else{
      printf("no\n");
    }
  }

  return 0;
}

int judge(int x,int y){

  if(y==0){
    return 1;
  }
  if(x>=n){
    return 0;
  }

  return judge(x+1,y) || judge(x+1,y-A[x]);

}

