#include <stdio.h>
#define N 20
#define NN 200

int main(){
  int n,q,A[N],Q[NN],i,j,a;
  int count=0,ans;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&Q[i]);
  }
  for(a=0;a<q;a++){
    for(i=0;i<n-1;i++){
      for(j=i+1;j<n;j++){
	ans = A[i] + A[j];
	if(Q[a] == ans)count++;
      }
    }
    if(count > 0)printf("yes\n");
    else printf("no\n");
    count = 0;
  }
  return 0;
}

