#include <stdio.h>

int solve(int, int);

int a[2000],n;

int main(){

  int m,q,i,x,r;

  scanf("%d",&n);

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

  scanf("%d",&q);

  for(i = 0 ; i < q ; i++){
 
    scanf("%d",&x);
    r = solve(0,x);
    
    if(r==1) printf("yes\n");
    else if(r==0) printf("no\n");
    
  }
 
  return 0;
 
}

int solve(int i, int x){

  int res;


if(x==0) return 1;

if(i>=n) return 0;

res = solve(i+1, x) || solve(i+1, x-a[i]);


 return res;

}