#include <stdio.h>

int Comeback(int, int);

int n, search;
int N[21];

int main(){

  int i, q, ans;

  scanf("%d", &n);

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

  scanf("%d", &q);

  for(i = 0; i < q; i++){

    scanf("%d", &search);
    
    ans = Comeback(0,0);

    if(ans == 1)
      printf("yes\n");
    else
      printf("no\n");

  }

  return 0;

}

int Comeback(int i, int sum){
  
  if(sum == search)
    return 1;

  if(i == n)
    return 0;

  if(Comeback((i + 1), N[i] + sum) == 1)
     return 1;

  if(Comeback((i + 1), sum) == 1)
    return 1;

  return 0;  

}