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

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

  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&A[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++) scanf("%d",&m[i]);

  for(j=0;j<q;j++){
    for(i=0;i<n;i++){
      if(A[i]<m[j]) count++;
    }
    if(count<2){
      printf("no\n");
      count=0;
      continue;
    }else{
      printf("yes\n");
      count=0;
      continue;
    }
    
  }

}

