#include<stdio.h>

int n;
int A[100];

int solve(int,int);

int main( ){
  int i,j,k;

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

int solve(int a, int b){
  if(b == 0) return 1;
  if(a >= n) return 0;

  
  int res = solve(a + 1, b) || solve(a + 1, b - A[a]);
  return res;
}

