#include <stdio.h>

int hai[100];
int n;

int f1(int i, int m){
  if (m==0)
    return 1;
  if (i>=n)
    return 0;
 return f1(i+1,m)||f1(i+1,m-hai[i]);
}

int main(int argc, char const *argv[]) {
  /* code */
  int s,m,i;

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

  scanf("%d",&s);
  for(i=0;i<s;i++){
    scanf("%d",&m);
    if(f1(0,m)) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}