#include <stdio.h>

int main(){
  int i, j, k, n, q, N[20], Q[200], check=0;
  scanf("%d",&n);
  for(i = 0; i < n; i++)
    scanf("%d",&N[i]);
    scanf("%d",&q);
  for(i = 0; i < q; i++)
    scanf("%d",&Q[i]);

  for(i = 0; i < q; i++){
    for(j = 0; j < n; j++){
      for(k = j+1; k < n; k++){
      if(Q[i] == N[j]){
	printf("yes\n");
	check = 1;
	break;
      }
      else if(Q[i] == N[j] + N[k]){
	printf("yes\n");
	check = 1;
	break;
      }
      }
    }
    if(check == 0) printf("no\n");
  }
  return 0;
}