#include <stdio.h>
#include <stdlib.h>

int *s;
int *m;
int n, q;

void judge(int a){
  int sum;
  int i,j;

  for (i = 0; i < n-1; i++) {
    for(j = i+1; j<n; j++){
      sum = s[i]+s[j];
      if (sum==a) {
        printf("yes\n" );
        break;
      }
    }
  }
  printf("no\n" );
}

int main() {
  int i,j;
  int key;

//要素数と要素の読み込み
  scanf("%d",&n);
  s = (int*)malloc(sizeof(int) * n);
  for(i=0; i<n; i++){
    printf("s[%d]: ",i);
    scanf("%d",&s[i]);
  }
  scanf("%d",&q);
  m = (int*)malloc(sizeof(int) * q);
  for(i=0; i<q; i++){
    printf("m[%d]: ",i);
    scanf("%d",&m[i]);
  }

  for (i = 0; i < q; i++) {
    judge(m[i]);
  }
/*
  for (i = 0; i < n-1; i++) {
    for(j = i + 1; j < n; j++){
      judge(s[i],s[j]);
    }
  }
*/
  return 0;
}

