#include<stdio.h>

int n, A[200];
int solve(int , int);

int main(){

  int i, m[200], q, a;

  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[i]);
    a = solve(0,m[i]);
    if(a == 0)
      printf("yes\n");
    if(a == 1)
      printf("no\n");
  }
  return 0; 

}
int solve(i,m){

  int res = 0;

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