#include <stdio.h>

int main()
{
  int n, m, k;
  int a[20], num[2001], ans[200];

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

  for ( int i = 0; i < n-1; ++i ) {
    for ( int j = i+1; j < n; ++j ) {
      k = a[i] + a[j];
      num[k] = 1;
    }
  }

 scanf("%d",&m);

  for ( int i = 0; i < m; ++i ) {
    scanf("%d", &ans[i]);
  }

  for ( int i = 0; i < m; ++i ) {
    if ( num[ans[i]] == 1 ) {
      printf("yes\n");
    } else {
      printf ("no\n");
    }
  }

  return 0;

}
