#include<stdio.h>
#define A 2000

int solve(int,int);
int a,b[A];

main(){
  int i,c,d;
  
  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d",&b[i]);
  }
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%d",&d);
    if(solve(0,d)!=0) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int solve(int i,int data2){
  int ans;
  if(data2 == 0)return 1;
  if(i>=a)return 0;

  ans = solve(i+1,data2-b[i])||solve(i+1,data2);
  return ans;
}