#include<stdio.h>
#define N 2000
#define i 2000
main(){
  int n, q, j, a, b, c;
  int A[N], m[i];
  
  scanf("%d",&n);
  for(j = 0; j < n; j++) {
    scanf("%d",&A[j]);
  }
  
  scanf("%d",&q);
  
  for(a = 0; a < q; a++) {
    scanf("%d",&m[a]);
      for(b = 1; b < n; b++) {
	if(m[a] == A[a] + A[a + b]) {
	printf("yes\n");
	break;
	}
	else {
	  printf("no\n");
	  break;
      }
    }
  }
}