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

int A[2000];

int toSolve(int,int);

int n;
int q;

int i,j;

int main(){

  int solve;
  int m;
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&q);
  for(j = 0;j < q;j++){
    scanf("%d",&m);


    solve = toSolve(0,m);
    if(solve == 1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}


int toSolve(int i,int m){

  int res;
  if(m == 0) return 1;
  if(i >= n) return 0;
  res = toSolve(i+1,m)||toSolve(i + 1,m - A[i]);
     return res;
}